!92 修改xxl-job服务器地址设置setAddress改为setAdminAddresses

Merge pull request !92 from kcrlyang/master
This commit is contained in:
lbw 2020-11-22 11:08:45 +08:00 committed by Gitee
commit 1cf5c882df

View File

@ -51,10 +51,10 @@ public class XxlJobAutoConfiguration {
.flatMap(s -> discoveryClient.getInstances(s).stream()).map(instance -> String
.format("http://%s:%s/%s", instance.getHost(), instance.getPort(), XXL_JOB_ADMIN))
.collect(Collectors.joining(","));
xxlJobSpringExecutor.setAddress(serverList);
xxlJobSpringExecutor.setAdminAddresses(serverList);
}
else {
xxlJobSpringExecutor.setAddress(xxlJobProperties.getAdmin().getAddresses());
xxlJobSpringExecutor.setAdminAddresses(xxlJobProperties.getAdmin().getAddresses());
}
return xxlJobSpringExecutor;