This is a sample project to test Spring Native with GraalVM native-image compiler, for compile and run native spring applications.
This project uses:
- spring-boot-starter-actuator
- micrometer-registry-prometheus
- spring-boot-starter-data-jpa
The GraalVM native-image compiler should be installed and configured on your machine, see the Getting Started section of the reference guide.
To create the executable, run the following goal:
$ ./mvnw package -Pnative
Then, you can run the app as follows:
$ target/spring-native-test