
Consider defining a bean of type ‘xx.xx.xx.xxService‘ in your configuratio
我这边是多模块项目,出现这种情况的原因是没有加载到service层 解决办法 在xxApplication加上@ComponentScan(“com.tju.backend”)
@ComponentScan("com.tju.backend") @SpringBootApplication public class BackendFrameApplication { public static void main(String[] args) { SpringApplication.run(BackendFrameApplication.class, args); } }👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type ‘xx.xx.xx.xxService‘ in your configuratio》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686554595a290555.html。