Commit b09de98c9311e1b6dff8156385ecefcba9b8b56b
Committed by
GitHub
Merge pull request #1223 from dadiyang/fix/im-getself-enableasync-proxytargetclass
[FIX] 框架:@EnableAsync 显式 proxyTargetClass=true,修 IM 写操作 getSelf() NoSuchBean 全量 500(ISSUE-001)
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-framework/yudao-spring-boot-starter-job/src/main/java/cn/iocoder/yudao/framework/quartz/config/YudaoAsyncAutoConfiguration.java
| @@ -13,7 +13,7 @@ import org.springframework.core.task.SimpleAsyncTaskExecutor; | @@ -13,7 +13,7 @@ import org.springframework.core.task.SimpleAsyncTaskExecutor; | ||
| 13 | * 异步任务 Configuration | 13 | * 异步任务 Configuration |
| 14 | */ | 14 | */ |
| 15 | @AutoConfiguration | 15 | @AutoConfiguration |
| 16 | -@EnableAsync | 16 | +@EnableAsync(proxyTargetClass = true) // proxyTargetClass=true:与 @EnableTransactionManagement(proxyTargetClass = true) 保持一致 |
| 17 | public class YudaoAsyncAutoConfiguration { | 17 | public class YudaoAsyncAutoConfiguration { |
| 18 | 18 | ||
| 19 | @Bean | 19 | @Bean |