<jsp:include page="/public/base/top"></jsp:include>
@RequestMapping(value="/public/base/top")
public String baseTop(Model model,HttpServletRequest request){
LoginResult loginResult=getCacheUser(request);
if(StringUtils.isEmpty(loginResult)){
return "redirect:/login";
}
if(StringUtils.isEmpty(loginResult.getUserId()) || StringUtils.isEmpty(loginResult.getToken())){
return "redirect:/login";
}
model.addAttribute("userId", loginResult.getUserId());
model.addAttribute("userName", loginResult.getUserName());
return "base/top";
}