This repository tests a set of features of Spring Boot 3 with GraalVM Native Image.
Compile the application to a native binary (GraalVM + native-image required):
mvn package -Pnative native:compile -DskipTests
Package the application as a native container image (Docker is required):
mvn spring-boot:build-image -Pnative -DskipTests
Current open issues with Spring Boot 3:
- Liquibase is not working - see oracle/graalvm-reachability-metadata#118 for the full fix
- Hibernate
@CreationTimestamp
and@UpdateTimestamp
do not work - see HibernateNativeHints.java - Actuator does not work in combination with Spring Data JPA - see ActuatorNativeHints.java