首页 新闻 会员 周边 捐助

项目启动报错,求解~!!!!!希望可以详细点!

0
悬赏园豆:120 [待解决问题]

2016-5-23 16:04:30 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.csic.app.common.auditlog.AspectLogger': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.csic.app.common.apply.service.UserService com.csic.app.common.auditlog.AspectLogger.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.csic.app.common.apply.service.UserService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.guotai.platform.access.intf.SecuritySubjectContext com.csic.app.common.apply.service.UserService.ssc; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.guotai.platform.access.intf.SecuritySubjectContext] 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)}



Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.csic.app.common.apply.service.UserService com.csic.app.common.auditlog.AspectLogger.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.csic.app.common.apply.service.UserService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.guotai.platform.access.intf.SecuritySubjectContext com.csic.app.common.apply.service.UserService.ssc; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.guotai.platform.access.intf.SecuritySubjectContext] 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)}



Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.csic.app.common.apply.service.UserService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.guotai.platform.access.intf.SecuritySubjectContext com.csic.app.common.apply.service.UserService.ssc; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.guotai.platform.access.intf.SecuritySubjectContext] 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)}



Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.guotai.platform.access.intf.SecuritySubjectContext com.csic.app.common.apply.service.UserService.ssc; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.guotai.platform.access.intf.SecuritySubjectContext] 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)}



Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.guotai.platform.access.intf.SecuritySubjectContext] 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)}

Jacky_Zk的主页 Jacky_Zk | 初学一级 | 园豆:82
提问于:2016-05-23 14:23
< >
分享
所有回答(3)
0

Could not autowire field: private com.csic.app.common.apply.service.UserService 

 

你用的注解爱是xml

看看你这个private com.csic.app.common.apply.service.UserService  如何注入的

33呵呵 | 园豆:108 (初学一级) | 2016-05-23 15:05

用的 是注解

支持(0) 反对(0) Jacky_Zk | 园豆:82 (初学一级) | 2016-05-23 16:48
0
小光 | 园豆:1766 (小虾三级) | 2016-05-23 16:12
0

你这样试一下

 

Controller组件中的userService组件应
由:private UserService userService;
改为: private UserServiceInf userService;

同理Service组件中的userDao组件应
由: private UserDao userDao;
改为: private UserDaoInf userDao;

黑猫的黑猫黑猫 | 园豆:325 (菜鸟二级) | 2016-05-24 10:21

 还有注意下 这个 有没有写错 [com.guotai.platform.access.intf.SecuritySubjectContext]

支持(0) 反对(0) 黑猫的黑猫黑猫 | 园豆:325 (菜鸟二级) | 2016-05-24 10:24
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册