Springboot项目启动后访问不到Controller

增加一个扫包即可:(scanBasePackages = "com")

 

@SpringBootApplication(scanBasePackages = "com")
public class SpringbootApplication {

public static void main(String[] args) {
SpringApplication.run(SpringbootApplication.class, args);
}

}
posted @ 2019-08-20 16:49  测试一枚  阅读(3091)  评论(0编辑  收藏  举报