SpringBoot 2 to convert the application into the WAR application JAR

Spring Boot with two powerful plug-ins:

  • spring-boot-gradle-plugin
  • spring-boot-maven-plugin

They are essentially functional parity, and provide operational command line Spring Boot application and its ability to be bundled into the operating JAR. In the final implementation phase, almost all guidelines have referred to this body.

A popular topic that many people still want to generate a WAR file deployed in the container. Such plugins are also supported. Essentially, you must reconfigure the project to generate the WAR file and the embedded container declared as a dependent provided. This ensures that the associated embedded container dependencies are not included in the WAR file.

For information about how to configure applications that plug container WAR file detailed steps, see:

Spring Boot runs on Servlet 3.0 Specification container.

 

See also

The following guidelines may be helpful:

Want to see other content guidelines? Please visit this guide belongs to column: " the Spring Official Guide "

Published 139 original articles · won praise 6 · views 10000 +

Guess you like

Origin blog.csdn.net/stevenchen1989/article/details/104273153