In this chapter, you will learn about different solutions for packaging a Spring Boot application, from creating an executable JAR to using GraalVM to create a native image from the code.
10-1. Create an Executable Archive
By default Spring Boot creates a JAR or WAR that can be run with java -jar your-application.jar. However, you might want to run the application as part of the startup of your server (currently tested and supported for Debian- and Ubuntu-based systems). For this you can use the Maven or Gradle plugins ...