Skip to content

Custom AsyncConfigurer no longer taken into account when upgrading to Spring Boot 3.5 #45689

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

Open
rayliang123 opened this issue May 27, 2025 · 3 comments
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged

Comments

@rayliang123
Copy link

rayliang123 commented May 27, 2025

Image

Springboot3.5.0, it added this code, but I customized an AsyncConfigurer implementation, @ConditionalOnMissingBean will be invalid, and AsyncConfigurerConfiguration.AsyncConfigurer will be added to the spring container anyway, so that the container has two AsyncConfigurer implementation classes, one is self-customized, and the other is provided by pringboot, which will report an error when starting.

Image

Excuse me, how to solve it? I don’t want the AsyncConfigurer implementation that comes with the framework.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 27, 2025
@bclozel
Copy link
Member

bclozel commented May 27, 2025

This probably means your custom bean hasn't been considered. Rather than providing screenshots of the Spring Boot codebase, a minimal sample application would help us to find the actual problem. Please provide a minimal sample application.

@bclozel bclozel added the status: waiting-for-feedback We need additional information before we can continue label May 27, 2025
@snicoll snicoll changed the title 升级到3.5.0后,自定义AsyncConfigurer会报错 Custom AsyncConfigurer no longer taken into account when upgrading to Spring Boot 3.5 May 27, 2025
@mymx2
Copy link

mymx2 commented May 28, 2025

use @AutoConfiguration(before = {org.springframework.boot.autoconfigure.task.TaskExecutionAutoConfiguration.class})

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels May 28, 2025
@wilkinsona wilkinsona added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels May 28, 2025
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

5 participants