加载SSM框架异常

weixin_36837739 2017-04-27 10:42:23
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.web.app.service.iface.UserServiceIface com.web.app.MobileController.UserController.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.web.app.service.iface.UserServiceIface] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)


...全文
141 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
我爱娃哈哈 2017-04-27
  • 打赏
  • 举报
回复
UserServiceIface你这个注入有问题
weixin_36837739 2017-04-27
  • 打赏
  • 举报
回复
求大神指教!!!!!! 新手第一次写APP后台访问数据库向前台放送json数据,用的是SSM框架
weixin_36837739 2017-04-27
  • 打赏
  • 举报
回复
这个直接访问controller 时运行出错
weixin_36837739 2017-04-27
  • 打赏
  • 举报
回复
这个是框架自动注入的吧
一个治疗术 2017-04-27
  • 打赏
  • 举报
回复
userController 这个类里面是否注入正确

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧