文件名从 ruoyi-framework/src/main/java/com/ruoyi/framework/config/AsyncConfig.java 修改 |
| | |
| | | package com.ruoyi.framework.config; |
| | | package com.ruoyi.common.core.config; |
| | | |
| | | import cn.hutool.core.util.ArrayUtil; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.core.exception.ServiceException; |
| | | import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Qualifier; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.scheduling.annotation.AsyncConfigurer; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.scheduling.annotation.AsyncConfigurerSupport; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | |
| | | import java.util.Arrays; |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @EnableAsync(proxyTargetClass = true) |
| | | @Configuration |
| | | public class AsyncConfig implements AsyncConfigurer { |
| | | @AutoConfiguration |
| | | public class AsyncConfig extends AsyncConfigurerSupport { |
| | | |
| | | @Autowired |
| | | @Qualifier("scheduledExecutorService") |