页面直接请求,  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  阅读(676)  评论(0)    收藏  举报