@ComponentScan配置扫描多个包 发表于 2022-04-25 更新于 2023-03-01 本文字数: 21 阅读时长 ≈ 1 分钟 @ComponentScan扫描多个包的注解配置:123456@Configuration@ComponentScan(basePackages = {"bean","dao","service"})public class TxConfig {}