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)}
Could not autowire field: private com.csic.app.common.apply.service.UserService
你用的注解爱是xml
看看你这个private com.csic.app.common.apply.service.UserService 如何注入的
用的 是注解
你这样试一下
Controller组件中的userService组件应
由:private UserService userService;
改为: private UserServiceInf userService;
同理Service组件中的userDao组件应
由: private UserDao userDao;
改为: private UserDaoInf userDao;
还有注意下 这个 有没有写错 [com.guotai.platform.access.intf.SecuritySubjectContext]