Error creating bean with name 'shiroFilter' defined in file [D:\TomCat\apache-tomcat-7.0.75\webapps\qth_ssm_mapper\WEB-INF\classes\config\spring\applicationContext-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\TomCat\apache-tomcat-7.0.75\webapps\qth_ssm_mapper\WEB-INF\classes\config\spring\applicationContext-shiro.xml]: Cannot resolve reference to bean 'userRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRealm': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.question.service.ITbUserService com.user.shiro.UserRealm.userService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.question.service.ITbUserService] 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)}
不应该是自动注入出现的问题才对吧 我之前的自动注入都是可以的 而且我又检查了一遍,实在不知道是什么原因