请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

tomcat运行报错

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的类。解决以上问题后,项目成功启动。

0 回复 有任何疑惑可以回复我~
  • 提问者 zndy10 #1
    非常感谢!非常感谢老师的大力帮助
    回复 有任何疑惑可以回复我~ 2019-01-21 22:10:19
geelylucky 2019-01-21 20:06:39

亲爱的同学,你好,我是geely老师的助教。

看过去,是你的sqlSessionFactory创建失败了,导致创建userMapper代理的时候失败了,可能是因为PageHelper引起的问题,你加我qq吧,我远程帮你看一下。835683985

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号