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

This commit is contained in:
YunaiV
2022-11-12 20:27:51 +08:00
parent d87343d70c
commit bb2303e789
42 changed files with 42 additions and 43 deletions

View File

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

View File

@@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
*
* @author 芋道源码
*/
@Configuration
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(XxlJobSpringExecutor.class)
@ConditionalOnProperty(prefix = "xxl.job", name = "enabled", havingValue = "true", matchIfMissing = true)
@EnableConfigurationProperties({XxlJobProperties.class})