From eca2bb482479a1bba580bf534a5b29b60966a6aa Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 20 一月 2023 13:12:06 +0800 Subject: [PATCH] update 使用 jdk17 语法优化代码 --- ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java b/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java index e051ff0..5caada8 100644 --- a/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java +++ b/ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java @@ -21,10 +21,8 @@ @ConditionalOnProperty(prefix = "xxl.job", name = "enabled", havingValue = "true") public class XxlJobConfig { - private final XxlJobProperties xxlJobProperties; - @Bean - public XxlJobSpringExecutor xxlJobExecutor() { + public XxlJobSpringExecutor xxlJobExecutor(XxlJobProperties xxlJobProperties) { log.info(">>>>>>>>>>> xxl-job config init."); XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor(); xxlJobSpringExecutor.setAdminAddresses(xxlJobProperties.getAdminAddresses()); -- Gitblit v1.9.3