增加一个扫包即可:(scanBasePackages = "com")
@SpringBootApplication(scanBasePackages = "com") public class SpringbootApplication { public static void main(String[] args) { SpringApplication.run(SpringbootApplication.class, args); } }
本文共 294 字,大约阅读时间需要 1 分钟。
增加一个扫包即可:(scanBasePackages = "com")
@SpringBootApplication(scanBasePackages = "com") public class SpringbootApplication { public static void main(String[] args) { SpringApplication.run(SpringbootApplication.class, args); } }
转载于:https://www.cnblogs.com/banml/p/11383945.html