Skip to content

Commit e2252c7

Browse files
committed
Merge branch '2.4.x'
Closes gh-26111
2 parents fe2e57d + 401ebc6 commit e2252c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3775,7 +3775,12 @@ To enable deferred or lazy bootstrapping, set the configprop:spring.data.jpa.rep
37753775
When using deferred or lazy bootstrapping, the auto-configured `EntityManagerFactoryBuilder` will use the context's `AsyncTaskExecutor`, if any, as the bootstrap executor.
37763776
If more than one exists, the one named `applicationTaskExecutor` will be used.
37773777

3778-
NOTE: When using deferred or lazy bootstrapping, make sure to defer any access to the JPA infrastructure after the application context bootstrap phase.
3778+
[NOTE]
3779+
====
3780+
When using deferred or lazy bootstrapping, make sure to defer any access to the JPA infrastructure after the application context bootstrap phase.
3781+
You can use `SmartInitializingSingleton` to invoke any initialization that requires the JPA infrastructure.
3782+
For JPA components (such as converters) that are created as Spring beans, use `ObjectProvider` to delay the resolution of dependencies, if any.
3783+
====
37793784

37803785
TIP: We have barely scratched the surface of Spring Data JPA.
37813786
For complete details, see the {spring-data-jdbc-docs}[Spring Data JPA reference documentation].

0 commit comments

Comments
 (0)