SpringBoot @Autowired 报错,提示Consider defining a bean of type 'XX'in your configuration.

主要是没有扫描到须要注入的包blog 解决方案io 在DemoApplication中加上要扫描的包 @ComponentScan("com.xxx.service")
相关文章
相关标签/搜索