Skip to content

Application TaskExecutor is no longer used when a custom AsyncConfigurer bean is defined #47897

@spec8472

Description

@spec8472

As mentioned in the release notes of spring boot 3.5 the bean name "taskExecutor" was removed -> https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.5-Release-Notes#auto-configured-taskexecutor-names

But the class AsyncExecutionAspectSupport uses this bean name to search for the default task executor -> https://github.com/spring-projects/spring-framework/blob/0319fe92114d6e7c5c39b2cbe36dc6ba19040616/spring-aop/src/main/java/org/springframework/aop/interceptor/AsyncExecutionAspectSupport.java#L244

So either the name "taskExecutor" needs to be added again (which is my current workaround) or the default look up in AsyncExecutionAspectSupport must use the name "applicationTaskExecutor".

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions