日志记录优化:全服务支持异步方法、异步配置从job移到web

This commit is contained in:
gaoqr
2025-01-18 11:54:34 +08:00
parent addbf16eed
commit a8d2d24f96
8 changed files with 17 additions and 24 deletions
@@ -5,16 +5,13 @@ import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
/**
* 异步任务 Configuration
* 异步线程 Configuration
*/
@AutoConfiguration
@EnableAsync
public class ChenfengAsyncAutoConfiguration {
public class ChenfengAsyncThreadAutoConfiguration {
@Bean
public BeanPostProcessor threadPoolTaskExecutorBeanPostProcessor() {
@@ -1,2 +1,2 @@
com.cf.imes.framework.quartz.config.ChenfengXxlJobAutoConfiguration
com.cf.imes.framework.quartz.config.ChenfengAsyncAutoConfiguration
com.cf.imes.framework.quartz.config.ChenfengAsyncThreadAutoConfiguration