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