tomcat运行报错
来源:6-9 用户模块所有功能自测试
zndy10
2019-01-21
21-Jan-2019 18:48:25.190 警告 [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.support.DefaultListableBeanFactory.getTypeForFactoryBean Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘categoryMapper’ defined in file [/Users/liushuai/Downloads/java/target/java/WEB-INF/classes/com/mmall/dao/CategoryMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [java.lang.Object[]] to required type [org.apache.ibatis.plugin.Interceptor[]] for property ‘plugins’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.github.pagehelper.PageHelper] to required type [org.apache.ibatis.plugin.Interceptor] for property ‘plugins[0]’: no matching editors or conversion strategy found; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [java.lang.Object[]] to required type [org.apache.ibatis.plugin.Interceptor[]] for property ‘plugins’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.github.pagehelper.PageHelper] to required type [org.apache.ibatis.plugin.Interceptor] for property ‘plugins[0]’: no matching editors or conversion strategy found
21-Jan-2019 18:48:25.232 警告 [RMI TCP Connection(2)-127.0.0.1] org.springframework.beans.factory.support.DefaultListableBeanFactory.getTypeForFactoryBean Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘userMapper’ defined in file [/Users/liushuai/Downloads/java/target/java/WEB-INF/classes/com/mmall/dao/UserMapper.class]: Unsatisfied dependency expressed through bean property ‘sqlSessionFactory’: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [java.lang.Object[]] to required type [org.apache.ibatis.plugin.Interceptor[]] for property ‘plugins’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.github.pagehelper.PageHelper] to required type [org.apache.ibatis.plugin.Interceptor] for property ‘plugins[0]’: no matching editors or conversion strategy found; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [applicationContext-datasource.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [java.lang.Object[]] to required type [org.apache.ibatis.plugin.Interceptor[]] for property ‘plugins’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.github.pagehelper.PageHelper] to required type [org.apache.ibatis.plugin.Interceptor] for property ‘plugins[0]’: no matching editors or conversion strategy found
这是什么问题
2回答
-
同学,你好,经过和你远程查看现场,发现你的pom.xml的jar包和老师的有很大区别,帮你把jar包调整后,把代码中的报错修改后,发现项目还是无法启动,最终发现是MessageConvert的类你使用了json2的类,导致找不到对应的类,这个老师在视频中讲过是因为当前的json包是版本不支持json2的类。解决以上问题后,项目成功启动。
012019-01-21 -
geelylucky
2019-01-21
亲爱的同学,你好,我是geely老师的助教。
看过去,是你的sqlSessionFactory创建失败了,导致创建userMapper代理的时候失败了,可能是因为PageHelper引起的问题,你加我qq吧,我远程帮你看一下。835683985
00
相似问题