Skip to content

Commit dd1ac61

Browse files
committed
Clarify the behavior if multiple Executor beans are present
Closes gh-44907
1 parent 2f7d598 commit dd1ac61

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ Depending on your target arrangement, you could change your javadoc:java.util.co
2020
The auto-configured javadoc:org.springframework.boot.task.ThreadPoolTaskExecutorBuilder[] allows you to easily create instances that reproduce what the auto-configuration does by default.
2121
====
2222

23+
[NOTE]
24+
====
25+
If multiple javadoc:java.util.concurrent.Executor[] beans are defined, regular task execution fallbacks to a bean named `taskExecutor`.
26+
GraphQL, Spring MVC and Spring WebFlux support fallback to a bean named `applicationTaskExecutor`.
27+
====
28+
29+
2330
When a javadoc:org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor[] is auto-configured, the thread pool uses 8 core threads that can grow and shrink according to the load.
2431
Those default settings can be fine-tuned using the `spring.task.execution` namespace, as shown in the following example:
2532

0 commit comments

Comments
 (0)