From 16e81f367b6f506de98e9b12b30bd80cfac8e343 Mon Sep 17 00:00:00 2001 From: "sky.huang" Date: Thu, 13 Jul 2023 09:35:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9B=20xxl-job=20=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=20address=20=E9=85=8D=E7=BD=AE,=20=E4=BE=BF=E4=BA=8E?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E5=86=85=E6=B3=A8=E5=86=8C=E5=88=B0=20?= =?UTF-8?q?=E5=A4=96=E9=83=A8xxl-job=20=E5=9C=BA=E6=99=AF=E4=B8=8B,=20?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E9=80=9A=E7=95=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/java3y/austin/cron/xxl/config/XxlJobConfig.java | 3 +++ austin-web/src/main/resources/application.properties | 1 + 2 files changed, 4 insertions(+) diff --git a/austin-cron/src/main/java/com/java3y/austin/cron/xxl/config/XxlJobConfig.java b/austin-cron/src/main/java/com/java3y/austin/cron/xxl/config/XxlJobConfig.java index 39c0ed9..fc54bed 100644 --- a/austin-cron/src/main/java/com/java3y/austin/cron/xxl/config/XxlJobConfig.java +++ b/austin-cron/src/main/java/com/java3y/austin/cron/xxl/config/XxlJobConfig.java @@ -20,6 +20,8 @@ public class XxlJobConfig { private String adminAddresses; @Value("${xxl.job.executor.appname}") private String appName; + @Value("${xxl.job.executor.address}") + private String address; @Value("${xxl.job.executor.ip}") private String ip; @Value("${xxl.job.executor.port}") @@ -37,6 +39,7 @@ public class XxlJobConfig { XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor(); xxlJobSpringExecutor.setAdminAddresses(adminAddresses); xxlJobSpringExecutor.setAppname(appName); + xxlJobSpringExecutor.setAddress(address); xxlJobSpringExecutor.setIp(ip); xxlJobSpringExecutor.setPort(port); xxlJobSpringExecutor.setAccessToken(accessToken); diff --git a/austin-web/src/main/resources/application.properties b/austin-web/src/main/resources/application.properties index 0baef2c..4af4532 100644 --- a/austin-web/src/main/resources/application.properties +++ b/austin-web/src/main/resources/application.properties @@ -68,6 +68,7 @@ xxl.job.admin.username=${austin.xxl.job.username:admin} xxl.job.admin.password=${austin.xxl.job.password:123456} xxl.job.executor.appname=${austin.xxl.job.executor.appname:austin} xxl.job.executor.jobHandlerName=${austin.xxl.job.executor.jobHandlerName:austinJob} +xxl.job.executor.address=${austin.xxl.job.address:} xxl.job.executor.ip= xxl.job.executor.port=${austin.xxl.executor.port:6666} xxl.job.executor.logpath=logs/xxl