spring boot @Async No qualifying ****expected single found 2 applicationTaskExecutor,taskScheduler
使用spring boot 的 俩个注解时:@EnableAsync@Async当一个线程多次重复调用时出现异常:org.springframework.aop.interceptor.AsyncExecutionAspectSupport.getDefaultExecutor(AsyncExecutionAspectSupport.java:236) : Could not find unique TaskExecutor beanorg.springframework.beans..
原创
2020-06-22 17:27:30 ·
2842 阅读 ·
1 评论