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(); }