Skip to content

Commit f797fab

Browse files
committed
Polish contribution
See gh-45232
1 parent 74222a6 commit f797fab

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/features/task-execution-and-scheduling.adoc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ The auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[] is
1212
- Asynchronous request handling in Spring MVC.
1313
- Support for blocking execution in Spring WebFlux.
1414
- Utilized for inbound and outbound message channels in Spring WebSocket.
15-
- Acts as a bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
16-
- Used as `bootstrapExecutor` for parallel bean initialization during startup, unless a `bootstrapExecutor` bean is defined.
15+
- Bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
16+
- Bootstrap Executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`.
1717

1818
While this approach works in most scenarios, Spring Boot allows you to override the auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[].
1919
By default, when a custom javadoc:java.util.concurrent.Executor[] bean is registered, the auto-configured javadoc:org.springframework.core.task.AsyncTaskExecutor[] backs off, and the custom javadoc:java.util.concurrent.Executor[] is used for regular task execution (via javadoc:org.springframework.scheduling.annotation.EnableAsync[format=annotation]).
@@ -23,7 +23,9 @@ For Spring MVC and Spring WebFlux, this bean must be of type javadoc:org.springf
2323

2424
Spring WebSocket and JPA will use javadoc:org.springframework.core.task.AsyncTaskExecutor[] if either a single bean of this type is available or a bean named `applicationTaskExecutor` is defined.
2525

26-
The following code snippet demonstrates how to register a custom javadoc:org.springframework.core.task.AsyncTaskExecutor[] to be used with Spring MVC, Spring WebFlux, Spring GraphQL, Spring WebSocket and JPA.
26+
Finally, the boostrap executor of the `ApplicationContext` uses a bean named `applicationTaskExecutor` unless a bean named `bootstrapExecutor` is defined.
27+
28+
The following code snippet demonstrates how to register a custom javadoc:org.springframework.core.task.AsyncTaskExecutor[] to be used with Spring MVC, Spring WebFlux, Spring GraphQL, Spring WebSocket, JPA, and background initialization of beans.
2729

2830
include-code::application/MyTaskExecutorConfiguration[]
2931

@@ -32,12 +34,6 @@ include-code::application/MyTaskExecutorConfiguration[]
3234
The `applicationTaskExecutor` bean will also be used for regular task execution if there is no javadoc:org.springframework.context.annotation.Primary[format=annotation] bean or a bean named `taskExecutor` of type javadoc:java.util.concurrent.Executor[] or javadoc:org.springframework.scheduling.annotation.AsyncConfigurer[] present in the application context.
3335
====
3436

35-
[NOTE]
36-
====
37-
The `applicationTaskExecutor` bean will be used for background bootstrapping if a bean named `bootstrapExecutor` is not defined.
38-
Spring Boot registers an alias for the `applicationTaskExecutor` bean with the name `bootstrapExecutor` if a `bootstrapExecutor` bean is not already defined and `applicationTaskExecutor` is present in the context.
39-
====
40-
4137
[WARNING]
4238
====
4339
If neither the auto-configured `AsyncTaskExecutor` nor the `applicationTaskExecutor` bean is defined, the application defaults to a bean named `taskExecutor` for regular task execution (javadoc:org.springframework.scheduling.annotation.EnableAsync[format=annotation]), following Spring Framework's behavior.
@@ -86,8 +82,8 @@ These integrations include:
8682
- Spring MVC's asynchronous request processing.
8783
- Spring WebFlux's blocking execution support.
8884
- Utilized for inbound and outbound message channels in Spring WebSocket.
89-
- Acts as a bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
90-
- Used as the `bootstrapExecutor` for parallel bean initialization during startup, unless a `bootstrapExecutor` bean is explicitly provided.
85+
- Bootstrap executor for JPA, based on the bootstrap mode of JPA repositories.
86+
- Bootstrap Executor for {url-spring-framework-docs}/core/beans/java/composing-configuration-classes.html#beans-java-startup-background[background initialization] of beans in the `ApplicationContext`, unless a bean named `bootstrapExecutor` is defined.
9187

9288
[TIP]
9389
====

0 commit comments

Comments
 (0)