spring boot 打包war

2019-01-21 来源: 北京de小刀 发布在  https://www.cnblogs.com/bj-xiaodao/p/10297963.html

@SpringBootApplication
public class AesApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(AesApplication.class, args);
    }
       @Override
        protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
            return builder.sources(AesApplication.class);
        }
}

maven clean package

相关文章