Skip to content

Commit ba9afc0

Browse files
committed
Adapt AOTCache documentation to JEP 514
Closes gh-47274
1 parent 8345ee5 commit ba9afc0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/packaging/class-data-sharing.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,10 @@ To use the AOT cache, you should first perform a training run on your applicatio
3838
----
3939
$ java -Djarmode=tools -jar my-app.jar extract --destination application
4040
$ cd application
41-
$ java -XX:AOTMode=record -XX:AOTConfiguration=app.aotconf -Dspring.context.exit=onRefresh -jar my-app.jar
42-
$ java -XX:AOTMode=create -XX:AOTConfiguration=app.aotconf -XX:AOTCache=app.aot -jar my-app.jar
41+
$ java -XX:AOTCacheOutput=app.aot -Dspring.context.exit=onRefresh -jar my-app.jar
4342
----
4443

4544
This creates an `app.aot` cache file that can be reused as long as the application is not updated.
46-
The intermediate `app.aotconf` file is no longer needed and can be safely deleted.
4745

4846
To use the cache file, you need to add an extra parameter when starting the application:
4947

0 commit comments

Comments
 (0)