springboot bean扫描路径

1:默认扫描启动类所在路径下全部的beanservice 2:能够在启动类中添加注解,手动指定扫描路径:vi @ComponentScan(basePackages = {"com.xxx.service1.*","com.xxx.service2.**"})
相关文章
相关标签/搜索