Creating a native executable using Spring Boot
In the previous recipes, we built the native application to run as a container. Even if that is a convenient solution for most modern cloud-native scenarios, we may need to build a native executable to be executed directly without a container engine.
In this recipe, we’ll learn how to configure our computer to build native applications using the GraalVM JDK.
Getting ready
In this recipe, we’ll reuse the result of the Using GraalVM Tracing Agent to configure the native application recipe. I prepared a version of the application that you can use as a starting point for this recipe. You can find it in the book’s GitHub repository at https://github.com/PacktPublishing/Spring-Boot-3.0-Cookbook/, in the chapter7/recipe7-6/start
folder.
You will need the GraalVM JDK version 21 installed on your computer. You can follow the instructions from the official website at https://www.graalvm.org/downloads/.
The application...