Skip to content

Commit 4721f0b

Browse files
committed
Update aot.adoc
Signed-off-by: Hyunsang Han <[email protected]>
1 parent 9ab6384 commit 4721f0b

File tree

1 file changed

+6
-1
lines changed
  • src/main/antora/modules/ROOT/pages/jpa

1 file changed

+6
-1
lines changed

src/main/antora/modules/ROOT/pages/jpa/aot.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ Do not use them directly in your code as generation and implementation details m
4444
=== Running with AOT Repositories
4545

4646
AOT is a mandatory step to transform a Spring application to a native executable, so it is automatically enabled when running in this mode.
47-
It is also possible to use those optimizations on the JVM by setting the `spring.aot.enabled` and `spring.aot.repositories.enabled` properties to `true`.
47+
When AOT is enabled (either for native compilation or by setting `spring.aot.enabled=true`), AOT repositories are automatically enabled by default.
48+
49+
You can explicitly control AOT repository generation by setting the `spring.aot.repositories.enabled` property:
50+
51+
* `spring.aot.repositories.enabled=true` - Explicitly enable AOT repositories
52+
* `spring.aot.repositories.enabled=false` - Disable AOT repositories even when AOT is enabled
4853

4954
AOT repositories contribute configuration changes to the actual repository bean registration to register the generated repository fragment.
5055

0 commit comments

Comments
 (0)