原文:spring Boot异步操作报错误: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.self.spring.springboot.Jeep' available

我也是最近开始学习Spring Boot,在执行异步操作的时候总是汇报如下的错误: Exception in thread main org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type com.self.spring.springboot.Jeep available ...

2017-08-03 20:17 0 1846 推荐指数:

查看详情

Caused by:org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type "" available: expected at least 1 bean which

项目使用spring, mybatis。因为分了多个模块,所以会这个模块引用了其它模块的现在,结果使用Junit测试的时候发现有两个模块不能自动注入dao和service问题。解决后在此记录一下。 解决思路,一直以为是dao的xml文件的配置问题,通过日志查看,发现所有的dao ...

Thu Dec 27 01:21:00 CST 2018 0 1238
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM