标签:ext name rgs 使用 打包 XML inf protected info
下面介绍一下使用IDEA来打war的注意事项。
@SpringBootApplication
public class SpringbootDeployApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(SpringbootDeployApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(SpringbootDeployApplication.class);
}
}
<packaging>war</packaging>
<build>
<!--finalName便签设置打成的war名称-->
<finalName>springboot</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
标签:ext name rgs 使用 打包 XML inf protected info
原文地址:https://www.cnblogs.com/elnimo/p/13798873.html