/**
   * 首页C,在request用翻入当前用户的菜单集合给页面循环
   *
   * @param model String mvc model 接口
   * @return String
   */
  @RequestMapping("/security/index")
  public String adminIndex(Model model) {

    model.addAttribute("menusList", SystemVariableUtils.getCommonVariableModel().getMenusList());

    return "security/index";
  }
 /**
  * 登录,返回登录页面。当发现当前用户已经登录名且认真后,会自动跳转到index页面
  *
  * @return String
  */
 @RequestMapping("/login")
 public String adminLogin() {
   if (!SystemVariableUtils.isAuthenticated()) {
     return "login";
   }
   return "redirect:/security/index";
 }