mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-10 21:19:00 +08:00
🐛 Fixing a bug. closed #2080 xxl -job admin url 参数错误
This commit is contained in:
1 parent
8c2cb9fa45
commit
2f9c93bc53
1 file changed
+2
-2
+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;
|
||||
|
||||
Reference in new issue
Block a user