-
Notifications
You must be signed in to change notification settings - Fork 40.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spring Boot 3.4: TaskExecutor no longer auto-configured due to other Executor beans from AbstractMessageBrokerConfiguration #43295
Comments
Thanks for the report. Unfortunately, it's not clear to me why you believe the If you would like us to spend some more time investigating, and to help us to understand what's happening in your application, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue. |
Thanks for the sample. In terms of auto-configuration, the behavior hasn't changed. This is with Spring Boot 3.4.0:
And this is from Spring Boot 3.3.6:
What has changed is the type of those beans that prevents the auto-configuration of a If I downgrade your sample to Spring Boot 3.3.6, it still fails to start, but for a different reason:
In your real app, how were you selecting which executor to use? I'm also wondering if you really intended to be using a WebSocket-related executor for presumably more general purposes. |
Thanks for the investigation. In my real app, the code was originally written with Spring Boot 2.6.7 and the dependency was a constructor parameter Further investigation showed that you are right that it is not the upgrade to Spring Boot 3.4 that causes the issue: I have another bean with a However, I am unable to reproduce this in a minimal environment. It might depend on the order that classes are discovered by component scanning. So to wrap things up, the question is whether Lines 52 to 65 in 8964203
|
After upgrading to Spring Boot 3.4, the application does not start:
The reason why this bean is missing and not created by
org.springframework.boot.autoconfigure.task.TaskExecutorConfigurations
:Auto configuration is here:
spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/task/TaskExecutorConfigurations.java
Lines 46 to 50 in 8964203
One of the existing beans is created here.
The text was updated successfully, but these errors were encountered: