使用maven布了一个shiro,为什么会报出这样的错误,希望有接触过朋友帮帮忙。。。

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)}

不应该是自动注入出现的问题才对吧 我之前的自动注入都是可以的 而且我又检查了一遍,实在不知道是什么原因

xml文件配置出错了,所以在spring加载的时候beanfactory加载失败

错误信息:

 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. 

没有满足条件的com.question.service.ITbUserService 的bean ,即没有定义,是不是ITbUerService或其实现类忘了写@Service?

感觉你的信息是倒过来的,粘贴成这样也不好看

xml文件配置出错了,所以在spring加载的时候beanfactory加载失败

你好,我好像也出现了你这问题,麻烦能告诉我怎么解决吗?谢谢