From 9753f9f7370b2b3da638587aaf04d438f64f10ef Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Tue, 14 Sep 2021 12:17:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0WebSocket=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ink/wgink/properties/websocket/WebSocketProperties.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {