🐛 Fixing a bug. closed #2080 xxl -job admin url 参数错误

This commit is contained in:
lengleng committed 2020-12-10 20:39:01 +08:00
1 parent 8c2cb9fa45
commit 2f9c93bc53
1 file changed
+2 -2
@@ -68,10 +68,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;