0%

@ComponentScan配置扫描多个包

@ComponentScan扫描多个包的注解配置:

1
2
3
4
5
6
@Configuration
@ComponentScan(basePackages = {"bean","dao","service"})
public class TxConfig {

}