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