mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 13:03:42 +08:00
修改xxl-job服务器地址设置setAddress改为setAdminAddresses
This commit is contained in:
parent
d7bc5f822f
commit
0588c4a707
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user