© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. DeinumSpring Boot 3 Recipeshttps://doi.org/10.1007/979-8-8688-0113-6_10

10. Packaging

Marten Deinum1  
(1)
Meppel, Drenthe, The Netherlands
 

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 ...

Get Spring Boot 3 Recipes: A Problem-Solution Approach for Java Microservices and Cloud-Native Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.