最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

运维笔记admin3浏览0评论

我这边是多模块项目,出现这种情况的原因是没有加载到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)

  1. 暂无评论