首页>代码>ssm+shiro+layui+easyui实现的后台权限管理系统>/RMS/src/main/java/SystemManage/Common/controller/IndexController.java
package SystemManage.Common.controller; import org.apache.shiro.SecurityUtils; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; @Controller public class IndexController { // 后台首页 @RequestMapping("/") public String index(){ return "index"; } // 后台首页 @RequestMapping("/index") public String index2(){ return "index"; } // 后台主页面 @RequestMapping("/main") public String main(){ return "main" ; } // 登录页面 @RequestMapping("/login") public String login(){ return "login" ; } /** * 未授权 */ @RequestMapping(value = "/unAuth") public String unAuth() { if (SecurityUtils.getSubject().isAuthenticated() == false) { return "redirect:/login"; } return "error/unAuth"; } }

泓鼎168 LV20
2024年5月15日
xuweiwowzy LV5
2024年2月24日
wz520135 LV7
2022年11月5日
猜猜21 LV13
2022年6月10日
ssh123 LV10
2022年3月18日
Start1 LV15
2022年3月10日
wanglinddad LV55
2022年3月1日
543666826 LV34
2021年11月20日
zy15587462022 LV8
2021年10月27日
ericxu1116 LV24
2021年7月8日

vincemokea LV5
5月7日
monster_001 LV3
3月25日
qiheideguang LV18
2024年12月4日
zhengguangshun LV4
2024年8月25日
李朝磊 LV18
2024年6月24日
ma406805131 LV19
2024年6月2日
shuiyan LV1
2024年6月1日
泓鼎168 LV20
2024年5月15日
yhe107 LV3
2024年4月17日
xuweiwowzy LV5
2024年2月24日