首页 > 解决方案 > @ComponentScan 是否需要与 @Configuration 属于同一类

问题描述

为什么@ComponentScan@Configuration总是齐头并进?这似乎是一个@Configuration总是需要用@ComponentScan.

标签: springspring-boot

解决方案


推荐阅读