Spring Framework Kotlin APIs, the functional way
This project is designed to demonstrate:
This sample does not use functional bean registration for 3 main reasons:
./gradlew build
./gradlew bootRun
./gradlew nativeCompile
then run build/native/nativeCompile/spring-kotlin-functional
executable (add .exe
on Windows)./gradlew bootBuildImage
AOT generation happens when either id("org.graalvm.buildtools.native")
or id("org.springframework.boot.aot")
plugins are activated.
If you want to leverage to speedup the application startup on the JVM:
jar -xf myapp.jar
as documented here
java
command with -Dspring.aot.enabled=true
, for example java -Dspring.aot.enabled=true -cp BOOT-INF/classes:BOOT-INF/lib/* com.example.MyApplication