Skip to content

Commit 401ebc6

Browse files
committed
Merge branch '2.3.x' into 2.4.x
Closes gh-26110
2 parents 0d81b4d + ab785d9 commit 401ebc6

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
@@ -4325,7 +4325,12 @@ To enable deferred or lazy bootstrapping, set the configprop:spring.data.jpa.rep
43254325
When using deferred or lazy bootstrapping, the auto-configured `EntityManagerFactoryBuilder` will use the context's `AsyncTaskExecutor`, if any, as the bootstrap executor.
43264326
If more than one exists, the one named `applicationTaskExecutor` will be used.
43274327

4328-
NOTE: When using deferred or lazy bootstrapping, make sure to defer any access to the JPA infrastructure after the application context bootstrap phase.
4328+
[NOTE]
4329+
====
4330+
When using deferred or lazy bootstrapping, make sure to defer any access to the JPA infrastructure after the application context bootstrap phase.
4331+
You can use `SmartInitializingSingleton` to invoke any initialization that requires the JPA infrastructure.
4332+
For JPA components (such as converters) that are created as Spring beans, use `ObjectProvider` to delay the resolution of dependencies, if any.
4333+
====
43294334

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

0 commit comments

Comments
 (0)