错误:No qualifying bean of type
2018-03-22 14:51
405 查看
问题描述:SpringMVC项目运行时出现错误:No qualifying bean of type 。。。错误原因:在SpringMVC项目中采用的是注解的方式,在Service层上使用了@Autowired注解,但是在对应的Dao层的实现类 上没有采用扫描到相对应的实现类修正方式:在使用@Autowired注解的Dao变量等对应的实现类上采用@Repository(value = "xxxDao")注解
备注:该文是我在学习JavaEE时遇到问题的备忘录,只针对我创建的工程遇到的问题!!!
备注:该文是我在学习JavaEE时遇到问题的备忘录,只针对我创建的工程遇到的问题!!!
相关文章推荐
- MyBatis映射错误,No qualifying bean of type 'xx.xx.UserDao' available
- 出现No qualifying bean of type [com.*.*.dao.InfoDao] found for :错误
- No qualifying bean of type [com.*.*.dao.InfoDao] found for :错误!
- 关于dao层Bean注入失败报No qualifying bean of type [xxx.xxx.xxx.xxx] is defined错误的问题
- 错误:No qualifying bean of type [cn.itcast.service.CustomerService] found for dependency: expected at
- 错误:No qualifying bean of type 'com.mongodb.MongoClient'
- shiro错误 org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type
- NoSuchBeanDefinitionException:No qualifying bean of type 解决方法
- Spring4.14 事务异常 NoUniqueBeanDefinitionException: No qualifying bean of type [....PlatformTransactionManager]
- 配置ssm项目报错:No qualifying bean of type ... found for dependency ...expected at least 1 bean which
- No qualifying bean of type [..] found for dependency
- Spring的JUnit错误:NoSuchBeanDefinitionException: No unique bean of type,expected single matching bean but found 2 [dataSource1,data
- NoSuchBeanDefinitionException: No qualifying bean of type 'net.shopxx.service.xxxService' available:
- No qualifying bean of type xxxxx is defined
- Spring 定时器 No qualifying bean of type [org.springframework.scheduling.TaskScheduler] is defined
- No qualifying bean of type [com.jj.mapper.UserMapper] found for dependency
- Spring mvc 报错:No qualifying bean of type [java.lang.String] found for dependency:
- Bean对象注入失败 .NoSuchBeanDefinitionException: No qualifying bean of type..
- NoSuchBeanDefinitionException: No qualifying bean of type ..
- FAQ(54):No qualifying bean of type 'com.Role.Service.RoleService' available: expected at least 1 bea