1. 环境及项目部署

1.1. https访问问题

使用springboot加证书的方式访问没有问题,如果用nginx代理访问时,{ms:global.host/}标签解析后还是http的形式,可以将模版资源采用//的方式,例如:

<script src="//mingsoft.net/xxx.js"/>

1.2. pom文件报某些jar包缺失

建议多强制更新几次,最好是先删除本地之前下载的jar,然后重新maven强制更新

1.3. 启动时报缺少某个类,

可能是没有编译到,建议重新clean、build试一下,还是不行的话那就maven强制更新一下

1.4. maven update强制更新一直下载不了报,一直报jar报缺少

是不是改了maven仓库的地址。是不需要修改的,直接使用默认的就行。

1.5. mysql8.0驱动报错

需要使用jdk8 以上版本

1.6. mcms系统很多资源都是线上cdn里面的,可以改成引用本地资源吗

可以的,在basic包里面找到meta.ftl中定义的路径改为本地的就行

1.7. 出现数据库表不存在的错误提示,可能是由于Mysql的区分大小写导致

在my.cnf的 [mysqld] 下增加一行 lower_case_table_names=1

1.8. Caused by: java.lang.ClassCastException: Cannot cast org.springframework.web.SpringServletContainerInitializer to javax.servlet.ServletContainerInitializer

参考第2与第3点,基本都是版本的问题导致。

1.9. 出现提示错误信息 “系统配置错误!

可能是因为项目部署的地址变动导致,详情请查看环境及项目部署的常见问题

1.10. 包有错误且中文是乱码

项目右键属性窗口,配置项目编码格式为UTF-8

1.11. 包提示有错误

项目右键属性窗口,检查jdk的环境与版本,MCms需要JDK7版本或以上版本。以下是Eclipse3处可配置版本的方式,都需要逐个进行检查。

这里的Dynamic Web Module需要切换至3.0

1.12. 切换Dynamic Web Module版本提示错误

这时需要手动进行修改配置,切换到文件夹导航模式,修改截图对应的xml文件里面的版本号为3.0

1.13. 提示下图错误信息

手动创建test的目录,如果有疑问可以参考maven的项目结构。

1.14. 如果提示JRE相关错误信息,检查Eclipse的Jdk配置参数

解决方法具体看下图的操作

1.15. 如果启动报异常,具体异常如下

[2016-03-16 16:53:48,718] localhost-startStop-1 org.mybatis.spring.mapper.ClassPathMapperScanner WARN  
- No MyBatis mapper was found in '[com.mingsoft.*.dao]' package. Please check your configuration.

[2016-03-16 16:53:49,375] localhost-startStop-1 org.springframework.web.context.ContextLoader 
ERROR - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with 
name 'baseAuthFilter' defined in class path resource [spring-shiro.xml]: BeanPostProcessor 
before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1': 
Cannot resolve reference to bean 'druid-stat-pointcut' while setting bean property 'pointcut'; 
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'druid-stat-pointcut' defined in class path resource [spring-mybatis.xml]: 
BeanPostProcessor before instantiation of bean failed; 
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0' 
defined in class path resource [spring-shiro.xml]: Cannot resolve reference to bean 'securityManager' 
while setting bean property 'securityManager'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' 
defined in class path resource [spring-shiro.xml]: Cannot resolve reference to bean 'baseAuthRealm' while 
setting bean property 'realm'; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [com.mingsoft.basic.security.BaseAuthRealm] for bean with name 'baseAuthRealm' defined in class 
path resource [spring-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.mingsoft.basic.security.BaseAuthRealm

Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [com.mingsoft.basic.security.BaseAuthRealm] for bean with name 'baseAuthRealm' 
defined in class path resource [spring-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.mingsoft.basic.security.BaseAuthRealm

Related cause: org.springframework.beans.factory.CannotLoadBeanClassException: 
Cannot find class [com.mingsoft.basic.security.BaseAuthRealm] for bean with name 'baseAuthRealm' 
defined in class path resource [spring-shiro.xml]; nested exception is java.lang.ClassNotFoundException: com.mingsoft.basic.security.BaseAuthRealm

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)

...........

清理一下项目重新编译一下,如果还不能解决请参考第2点与第3点

Copyright © mingsoft.net 2019 all right reserved,powered by Gitbook该文件修订时间: 2020-02-08 09:52:14

results matching ""

    No results matching ""

    results matching ""

      No results matching ""