添加WebSocket配置

This commit is contained in:
wanggeng888 2021-01-18 22:08:32 +08:00
parent a6ff68ab82
commit ba336e9031
2 changed files with 10 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class RouteController {
} else {
mv.addObject("oauthServer", systemProperties.getPortalUrl());
}
mv.addObject("ws", systemProperties.getWs());
mv.addObject("title", systemProperties.getTitle());
return mv;
}

View File

@ -19,6 +19,7 @@ public class SystemProperties {
private Integer port;
private String url;
private String ws;
private String title;
private String portalUrl;
private String loginPageName;
@ -39,6 +40,14 @@ public class SystemProperties {
this.url = url;
}
public String getWs() {
return ws;
}
public void setWs(String ws) {
this.ws = ws;
}
public String getTitle() {
return title == null ? "" : title.trim();
}