Deploying to Production

    Alternatively, Spring Boot applications can be packaged as WAR files as well. Follow the instructions in Spring Boot documentation how to do this.

    The main differences between JAR and WAR packaging are as follows:

    JAR packaging:

    • bigger package size

    WAR packaging:

    • a separate Java Servlet container needed

    • smaller package size

    See for additional details.

    You can read more about Spring applications and how to deploy them at the official Spring website.