chrome 59.0.3071.115
tomcat tomcat7.0.68
试验代码
@At("nutznewdemo/home/index")
@Ok("jsp:jsp.home.index")
@GET
public void index(HttpSession session) {
// dao.query("select 1 from daul", null);
log.info("HomeModule#index");
log.infof("session id is : %s", session.getId());
}
打印日志
2017-07-26 13:25:18,021 [http-bio-8080-exec-5] INFO nutz.demo.nutznewdemo.modules.HomeModule - HomeModule#index
2017-07-26 13:25:18,021 [http-bio-8080-exec-5] INFO nutz.demo.nutznewdemo.modules.HomeModule - session id is : F3FA6EEF35F46445C750227856D25F09
2017-07-26 13:25:18,835 [http-bio-8080-exec-5] INFO nutz.demo.nutznewdemo.modules.HomeModule - HomeModule#index
2017-07-26 13:25:18,835 [http-bio-8080-exec-5] INFO nutz.demo.nutznewdemo.modules.HomeModule - session id is : 12FEDE883ADA358FB1E56C9CF7966779
第一次HTTP 响应头
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: nutz/1.r.58 <nutzam.com>
Set-Cookie: JSESSIONID=70F50D1ECF86B87DF1CE716FC6985EB0; Path=/nutz-new-demo/; HttpOnly
Content-Type: text/html;charset=UTF-8
Content-Length: 319
Date: Wed, 26 Jul 2017 05:27:05 GMT
第二次请求头
GET http://localhost:8080/nutz-new-demo/nutznewdemo/home/index HTTP/1.1
Host: localhost:8080
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.8
Cookie: jeesite.session.id=fa41f32097ed4dc1933c349eb2b9a2fc; Hm_lvt_82116c626a8d504a5c0675073362ef6f=1498727567; Hm_lpvt_82116c626a8d504a5c0675073362ef6f=1499678007; JSimon=3.5,SC,MS,25
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: nutz/1.r.58 <nutzam.com>
Set-Cookie: JSESSIONID=2E1A96D99AFD12D1956D2FBF10F392AA; Path=/nutz-new-demo/; HttpOnly
Content-Type: text/html;charset=UTF-8
Content-Length: 319
Date: Wed, 26 Jul 2017 05:27:05 GMT