新增子系统跳转统一用户入口
This commit is contained in:
parent
597875f474
commit
53edb180e9
@ -1,6 +1,7 @@
|
|||||||
package com.cm.common.plugin.oauth.controller.routes;
|
package com.cm.common.plugin.oauth.controller.routes;
|
||||||
|
|
||||||
import com.cm.common.component.SecurityComponent;
|
import com.cm.common.component.SecurityComponent;
|
||||||
|
import com.cm.common.config.properties.OauthProperties;
|
||||||
import com.cm.common.exception.SearchException;
|
import com.cm.common.exception.SearchException;
|
||||||
import com.cm.common.pojo.bos.UserInfoBO;
|
import com.cm.common.pojo.bos.UserInfoBO;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -20,6 +21,8 @@ public class RouteController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SecurityComponent securityComponent;
|
private SecurityComponent securityComponent;
|
||||||
|
@Autowired
|
||||||
|
private OauthProperties oauthProperties;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 首页
|
* 首页
|
||||||
@ -31,6 +34,7 @@ public class RouteController {
|
|||||||
ModelAndView mv = new ModelAndView("index");
|
ModelAndView mv = new ModelAndView("index");
|
||||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||||
mv.addObject("userUsername", userInfoBO.getUserUsername());
|
mv.addObject("userUsername", userInfoBO.getUserUsername());
|
||||||
|
mv.addObject("oauthServer", oauthProperties.getOauthServer());
|
||||||
return mv;
|
return mv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user