Skip to content

Commit

Permalink
config(web): explicit qualifier bean for AsyncTaskExecutor in WebConf…
Browse files Browse the repository at this point in the history
…ig (#5741)
  • Loading branch information
nemesisOsorio authored Jun 21, 2022
1 parent 332b74e commit 776e8ed
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import java.util.List;
import javax.servlet.Filter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
Expand Down Expand Up @@ -54,7 +55,9 @@ public class WebConfig extends WebMvcConfigurerAdapter {
private final AsyncTaskExecutor asyncTaskExecutor;

@Autowired
public WebConfig(Registry registry, AsyncTaskExecutor asyncTaskExecutor) {
public WebConfig(
Registry registry,
@Qualifier("threadPoolTaskScheduler") AsyncTaskExecutor asyncTaskExecutor) {
this.registry = registry;
this.asyncTaskExecutor = asyncTaskExecutor;
}
Expand Down

0 comments on commit 776e8ed

Please sign in to comment.