idea报错 Consider defining a bean of type ‘xx.PeopleService‘ in your configuration.

问题描述

报错信息

解决方案:

在启动类添加:@SpringBootApplication(scanBasePackages={“com.example.chart2.controller”,“com.example.chart2.service”})
包含你所需要扫描到的包

猜你喜欢

转载自blog.csdn.net/sunxiaohong__/article/details/125290869
今日推荐