/spring-native-test

Repository to make initial tests with Spring native

Primary LanguageJava

spring-native-test

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

Running project

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