当前位置:
凯发ag旗舰厅登录网址下载 >
前端技术
> javascript
>内容正文
javascript
springboottest报错:no qualifying bean of type...expected at least 1 bean which qualifies as autowire -凯发ag旗舰厅登录网址下载
凯发ag旗舰厅登录网址下载
收集整理的这篇文章主要介绍了
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
总结
以上是凯发ag旗舰厅登录网址下载为你收集整理的springboottest报错:no qualifying bean of type...expected at least 1 bean which qualifies as autowire的全部内容,希望文章能够帮你解决所遇到的问题。
如果觉得凯发ag旗舰厅登录网址下载网站内容还不错,欢迎将凯发ag旗舰厅登录网址下载推荐给好友。
- 上一篇:
- 下一篇: