标签:ext bsp protected over override conf cat Servle boot
启动方法应该继承一个接口,然后实现一个方法
@SpringBootApplication //开启spring配置 public class Application extends SpringBootServletInitializer { public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { //参数为当前springBoot启动类 return builder.sources(Application.class); } }
标签:ext bsp protected over override conf cat Servle boot
原文地址:https://www.cnblogs.com/pogusanqian/p/12757387.html