While the documentation correctly mentions that the AOT Cache is available since Java 24, the snippet which demonstrates the creation of the AOT Cache only works with Java 25, as the -XX:AOTCacheOutput is not part of Java 24.
$ java -XX:AOTCacheOutput=app.aot -Dspring.context.exit=onRefresh -jar my-app.jar
It would be great if there would be another snippet which demonstrates the AOT Cache creation using Java 24.
While the documentation correctly mentions that the AOT Cache is available since Java 24, the snippet which demonstrates the creation of the AOT Cache only works with Java 25, as the
-XX:AOTCacheOutputis not part of Java 24.It would be great if there would be another snippet which demonstrates the AOT Cache creation using Java 24.