sample spring boot application using spring native
to build a jar using normal java run
./mvnw clean package
then to start the app run
java -jar target/spring-native-example-0.0.1-SNAPSHOT.jar
To build a native executable using graalvm run
./mvnw -Pnative clean package
then to start the app run
./target/spring-native-example
To build the native image using docker run
./mvnw clean spring-boot:build-image
then to start the app run
docker-compose up -d
tools needed to build the project.
sdk install java 21.3.1.r17-grl
sudo apt-get install gcc
sudo apt-get install libz-dev