天天看點

【SpringBoot】There is more than one bean of ‘TaskExecutor‘ type

Could not autowire. There is more than one bean of 'TaskExecutor' type.
Beans:
applicationTaskExecutor   (TaskExecutionAutoConfiguration.class) taskExecutor   (ApplicationConfig.java)      
@Qualifier("taskExecutor")
@Autowired
private TaskExecutor taskExecutor;