admin管理员组

文章数量:1794759

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); } }

本文标签: typebeandefiningconfiguratioxxService