首页 > 编程语言 > 详细

SSM整合报错org.springframework.beans.factory.UnsatisfiedDependencyException

时间:2018-11-27 21:46:42      阅读:618      评论:0      收藏:0      [点我收藏+]

我解决的办法是把.m2仓库所有文件删除,重新maven project就可以了。

但是在做这一步之前,报错如下:

①org.springframework.beans.factory.UnsatisfiedDependencyException 

②ContainerBase.addChild: start:   

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]] 

③Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: 

org.apache.catalina.LifecycleException

⑤Error creating bean with name ‘userService‘: Unsatisfied dependency expressed through field ‘userMapper‘

⑥java.lang.IllegalStateException: Failed to load ApplicationContext

⑦Caused by: java.lang.ClassNotFoundException: Cannot find class: com.github.pagehelper.PageInterceptor

大概报了这七个错误,特别恶心。原因可能是我导入其他项目时,maven project污染了.m2仓库中的文件。

SSM整合报错org.springframework.beans.factory.UnsatisfiedDependencyException

原文:https://www.cnblogs.com/liaoxiaolao/p/10029107.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!