标签:span div void 默认 tap 情况下 public 需要 boot
springboot注解扫描范围是由@ComponentScan指定的;
默认情况下为启动程序所在目录及其子包;
如果需要指定扫描路径,在启动程序中添加修改
@ComponentScan(basePackages={"org.jstudio.a","org.jstudio.b"})
@SpringBootApplication
public class xxxApplication {
public static void main(String[] args) {
SpringApplication.run(xxxApplication.class, args);
}
}
标签:span div void 默认 tap 情况下 public 需要 boot
原文地址:https://www.cnblogs.com/zsg88/p/11320239.html