mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-04 18:09:54 +08:00
@@ -48,6 +48,10 @@
|
||||
<groupId>org.apache.curator</groupId>
|
||||
<artifactId>curator-recipes</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.zookeeper</groupId>
|
||||
<artifactId>zookeeper</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ public class DefaultServiceInfoProvider implements ServiceInfoProvider {
|
||||
try {
|
||||
this.serviceId = InetAddress.getLocalHost().getHostName();
|
||||
} catch (UnknownHostException e) {
|
||||
this.serviceId = RandomStringUtils.randomAlphabetic(10);
|
||||
this.serviceId = RandomStringUtils.secure().nextAlphabetic(10);
|
||||
}
|
||||
}
|
||||
log.info("Current Service ID: {}", serviceId);
|
||||
|
||||
Reference in New Issue
Block a user