diff --git a/basic-properties/src/main/java/ink/wgink/properties/websocket/WebSocketProperties.java b/basic-properties/src/main/java/ink/wgink/properties/websocket/WebSocketProperties.java index a4f1663b..20c2f339 100644 --- a/basic-properties/src/main/java/ink/wgink/properties/websocket/WebSocketProperties.java +++ b/basic-properties/src/main/java/ink/wgink/properties/websocket/WebSocketProperties.java @@ -19,7 +19,7 @@ public class WebSocketProperties { private String context; public String getUrl() { - return url == null ? "" : url.trim(); + return url == null ? "127.0.0.1" : url.trim(); } public void setUrl(String url) { @@ -27,7 +27,7 @@ public class WebSocketProperties { } public Integer getPort() { - return port == null ? 0 : port; + return port == null ? 1991 : port; } public void setPort(Integer port) { @@ -35,7 +35,7 @@ public class WebSocketProperties { } public String getContext() { - return context == null ? "" : context.trim(); + return context == null ? "websocket" : context.trim(); } public void setContext(String context) {