13.打包发布
Posted fly-book
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了13.打包发布相关的知识,希望对你有一定的参考价值。
<packaging>war</packaging>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
@SpringBootApplication(scanBasePackages = "com.fly")
public class SpringDemoApp extends SpringBootServletInitializer
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder)
return builder.sources(SpringDemoApp.class);
public static void main(String[] args)
SpringApplication.run(SpringDemoApp.class,args);
以上是关于13.打包发布的主要内容,如果未能解决你的问题,请参考以下文章