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?
希望清楚。