添加WebSocket默认配置
This commit is contained in:
parent
897e648b98
commit
9753f9f737
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user