Format optimization

pull/233/head
chen.ma 3 years ago
parent 23d5d366a2
commit 258bda45d8

@ -34,7 +34,7 @@ public class CloudCommonIdUtil {
public static String getClientIpPort(PropertyResolver resolver, InetUtils inetUtils) { public static String getClientIpPort(PropertyResolver resolver, InetUtils inetUtils) {
String hostname = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress(); String hostname = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress();
String port = resolver.getProperty("server.port", "8080"); String port = resolver.getProperty("server.port", "8080");
return combineParts(hostname, SEPARATOR, port); return combineParts(hostname, SEPARATOR, port);
} }
@SneakyThrows @SneakyThrows

Loading…
Cancel
Save