0
点赞
收藏
分享

微信扫一扫

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

i奇异 2022-07-28 阅读 103


一、问题描述

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;

 

举报

相关推荐

0 条评论