From ba336e90314f8c7595446bd7f15b80e87847f34c Mon Sep 17 00:00:00 2001 From: wanggeng888 <450292408@qq.com> Date: Mon, 18 Jan 2021 22:08:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0WebSocket=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/oauth/controller/routes/RouteController.java | 1 + .../cm/common/config/properties/SystemProperties.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/routes/RouteController.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/routes/RouteController.java index 1688c2c..56f1657 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/routes/RouteController.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/controller/routes/RouteController.java @@ -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; } diff --git a/cloud-common/src/main/java/com/cm/common/config/properties/SystemProperties.java b/cloud-common/src/main/java/com/cm/common/config/properties/SystemProperties.java index 3d9b85e..84e57ba 100644 --- a/cloud-common/src/main/java/com/cm/common/config/properties/SystemProperties.java +++ b/cloud-common/src/main/java/com/cm/common/config/properties/SystemProperties.java @@ -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(); }