页面直接请求,  Controller代码

@RequestMapping("/testCookieValue")
public String testCookieValue(@CookieValue("JSESSIONID") String sessionId){
    System.out.println(sessionId);
  return null;
}

 

posted on 2017-01-10 21:07  J-sirl  阅读(673)  评论(0编辑  收藏  举报