提交 0588c4a7 编写于 作者: Y yang

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

上级 d7bc5f82
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册