Springboot项目启动后访问不到Controller
增加一个扫包即可:(scanBasePackages = "com")
@SpringBootApplication(scanBasePackages = "com")
public class SpringbootApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootApplication.class, args);
}
}