Skip to content

matthew-js-porter-learning/spring-native

Repository files navigation

Spring Native

sample spring boot application using spring native

Building locally

Jar

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

Native

To build a native executable using graalvm run

./mvnw -Pnative clean package

then to start the app run

./target/spring-native-example

Docker Image

To build the native image using docker run

./mvnw clean spring-boot:build-image

then to start the app run

docker-compose up -d

Dependencies

tools needed to build the project.

Docker

graalvm

sdk install java 21.3.1.r17-grl

gcc

sudo apt-get install gcc

libz-dev

sudo apt-get install libz-dev

About

sample spring boot application using spring native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published