Commit d32c9f36ae66a80e13674f2c29ecf864b59c4a65
Merge branch 'master-jdk17' of https://github.com/YunaiV/ruoyi-vue-pro into master-jdk17
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 |