优化,使用 @Configuration(proxyBeanMethods = false) 提升启动速度

This commit is contained in:
YunaiV
2022-11-12 20:17:58 +08:00
parent 92ace031fe
commit f5ef87094d
28 changed files with 30 additions and 27 deletions

View File

@ -11,7 +11,7 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
/**
* 异步任务 Configuration
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableAsync
public class YudaoAsyncAutoConfiguration {

View File

@ -9,7 +9,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
/**
* 定时任务 Configuration
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@EnableScheduling // 开启 Spring 自带的定时任务
public class YudaoQuartzAutoConfiguration {