system服务和demo服务有办法同时使用xxl-job吗 #2313

This commit is contained in:
zeroBlack
2021-03-13 10:49:54 +08:00
parent 43272ce875
commit 731d779d08
3 changed files with 14 additions and 14 deletions
File diff suppressed because one or more lines are too long
@@ -132,9 +132,6 @@ jero :
adminAddresses: http://127.0.0.1:9080/xxl-job-admin
appname: ${spring.application.name}
accessToken: ''
address: 127.0.0.1:30007
ip: 127.0.0.1
port: 30007
logPath: logs/jero/job/jobhandler/
logRetentionDays: 30
#自定义路由配置 yml nacos database
@@ -32,8 +32,8 @@ public class XxlJobConfiguration {
XxlJobSpringExecutor xxlJobSpringExecutor = new XxlJobSpringExecutor();
xxlJobSpringExecutor.setAdminAddresses(xxlJobProperties.getAdminAddresses());
xxlJobSpringExecutor.setAppname(xxlJobProperties.getAppname());
xxlJobSpringExecutor.setIp(xxlJobProperties.getIp());
xxlJobSpringExecutor.setPort(xxlJobProperties.getPort());
// xxlJobSpringExecutor.setIp(xxlJobProperties.getIp());
// xxlJobSpringExecutor.setPort(xxlJobProperties.getPort());
xxlJobSpringExecutor.setAccessToken(xxlJobProperties.getAccessToken());
xxlJobSpringExecutor.setLogPath(xxlJobProperties.getLogPath());
xxlJobSpringExecutor.setLogRetentionDays(xxlJobProperties.getLogRetentionDays());