0
我有这样一个登录码的UserInfo是用户名和密码如何在春季framewok设置会话现在
@RequestMapping(value = "/login/loginCheck", method = RequestMethod.POST)
public Map<String, Object> loginCheck(UserInfo userInfo)
@RequestMapping(value = "/login/PageA", method = RequestMethod.POST)
public Map<String, Object> PageA(){
//maybe check the session
//if session expired ,then redirect to login page
}
登录后一种形式,我应该页面重定向到页面A,并记录用户名中会话,所以在春季框架中,我只是配置它或从请求中获取Session?
希望清楚。