spring-boot/spring-boot-project
Stéphane Nicoll 13bd61445b Allow configuring a TaskExecutor even if an Executor is present
This commit updates `TaskExecutionAutoConfiguration` to permit the
auto-configuration of a `TaskExecutor` even if a user-defined `Executor`
bean is present.

Such `Executor` may have been created for totally unrelated reason, and
it may or may not be an `AsyncTaskExecutor`. The default behavior has
not changed, but this commit provides a new property,
`spring.task.execution.mode` that can be set to `force` to
auto-configure the `TaskExecutor` anyway.

Because this mode made it so that two `Executor` will be present in the
context, this commit also automatically configures an `AsyncConfigurer`
if none is present already to make sure task processing uses the
auto-configured TaskExecutor.

Closes gh-44659
2025-03-26 16:27:21 +01:00
..
spring-boot Improve performance by not checking all indexed elements 2025-03-24 22:47:30 -07:00
spring-boot-actuator Merge branch '3.4.x' 2025-03-18 15:26:47 +01:00
spring-boot-actuator-autoconfigure Add OTLP span exporter builder customizers 2025-03-26 12:00:36 +01:00
spring-boot-autoconfigure Allow configuring a TaskExecutor even if an Executor is present 2025-03-26 16:27:21 +01:00
spring-boot-dependencies Merge branch '3.4.x' 2025-03-26 10:58:32 +00:00
spring-boot-devtools Provide @ConditionalOn… annotations for all concrete conditions 2025-03-20 14:29:59 +00:00
spring-boot-docker-compose Merge branch '3.4.x' 2025-03-19 09:51:02 +01:00
spring-boot-docs Allow configuring a TaskExecutor even if an Executor is present 2025-03-26 16:27:21 +01:00
spring-boot-parent Merge branch '3.4.x' 2025-03-26 10:58:32 +00:00
spring-boot-starters Add reference to Dapr Java SDK Spring Boot starter 2025-03-25 11:16:00 +01:00
spring-boot-test Merge branch '3.4.x' 2025-03-14 17:24:51 -07:00
spring-boot-test-autoconfigure Merge branch '3.4.x' 2025-03-14 17:24:51 -07:00
spring-boot-testcontainers Merge branch '3.4.x' 2025-03-19 09:51:02 +01:00
spring-boot-tools Merge branch '3.4.x' 2025-03-25 17:06:19 +00:00