!19 绿能模块

* 绿能模块
This commit is contained in:
三丙
2025-08-09 11:00:12 +00:00
parent 3d441d75a3
commit 199711026c
34 changed files with 1122 additions and 50 deletions

View File

@@ -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>

View File

@@ -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);