当前位置:
凯发k8官方网 >
前端技术
> javascript
>内容正文
javascript
springboottest报错:no qualifying bean of type...expected at least 1 bean which qualifies as autowire -凯发k8官方网
凯发k8官方网
收集整理的这篇文章主要介绍了
springboottest报错:no qualifying bean of type...expected at least 1 bean which qualifies as autowire
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
已知:报错信息为
caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type 'com....' available: expected at least 1 bean which qualifies as autowire candidate. dependency annotations: {@javax.annotation.resource(shareable=true, lookup=, name=, description=, authenticationtype=container, type=class java.lang.object, mappedname=)}解:dao、service、controller在同一个项目下的不同module开发后,使用@springboottest测试时,测试类一定要写在application类所在的module
总结
以上是凯发k8官方网为你收集整理的springboottest报错:no qualifying bean of type...expected at least 1 bean which qualifies as autowire的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇:
- 下一篇: