首页>代码>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";
    }
}
最近下载更多
xuweiwowzy  LV5 2月24日
wz520135  LV7 2022年11月5日
猜猜21  LV13 2022年6月10日
ssh123  LV10 2022年3月18日
Start1  LV15 2022年3月10日
wanglinddad  LV54 2022年3月1日
543666826  LV33 2021年11月20日
zy15587462022  LV8 2021年10月27日
ericxu1116  LV24 2021年7月8日
白帅帅  LV5 2021年4月26日
最近浏览更多
yhe107  LV3 4月17日
xuweiwowzy  LV5 2月24日
做自己的太阳  LV11 2月1日
qq1581551433 1月9日
暂无贡献等级
WBelong  LV7 2023年12月26日
oulingqiao  LV13 2023年10月17日
ly900121 2023年7月3日
暂无贡献等级
1967862957  LV3 2023年6月5日
 LV7 2023年3月29日
uni-code_0123  LV1 2023年3月23日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友