✅ 操作成功!

Consider defining a bean of type ‘xx.xx.xx.xxService‘ in your configuratio

发布时间:2023-06-12 作者:admin 来源:文学

Consider defining a bean of type ‘xx.xx.xx.xxService‘ in your configuratio

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