From 53edb180e96cda9319352081a72fe9ad7a823fdc Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Mon, 2 Sep 2019 12:01:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=AD=90=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E7=BB=9F=E4=B8=80=E7=94=A8=E6=88=B7=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/oauth/controller/routes/RouteController.java | 4 ++++ 1 file changed, 4 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 3b6a2c5..1c2b4fd 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 @@ -1,6 +1,7 @@ package com.cm.common.plugin.oauth.controller.routes; import com.cm.common.component.SecurityComponent; +import com.cm.common.config.properties.OauthProperties; import com.cm.common.exception.SearchException; import com.cm.common.pojo.bos.UserInfoBO; import org.springframework.beans.factory.annotation.Autowired; @@ -20,6 +21,8 @@ public class RouteController { @Autowired private SecurityComponent securityComponent; + @Autowired + private OauthProperties oauthProperties; /** * 首页 @@ -31,6 +34,7 @@ public class RouteController { ModelAndView mv = new ModelAndView("index"); UserInfoBO userInfoBO = securityComponent.getCurrentUser(); mv.addObject("userUsername", userInfoBO.getUserUsername()); + mv.addObject("oauthServer", oauthProperties.getOauthServer()); return mv; }