6 回答
TA贡献1826条经验 获得超6个赞
Request URL: http://localhost8004/sessions Request Method: GET Status Code: 200 Remote Address: [::1]:8004 Referrer Policy: no-referrer-when-downgrade Access-Control-Allow-Credentials: true Access-Control-Allow-Headers: x-requested-with Access-Control-Allow-Methods: HEAD, POST, GET, OPTIONS, DELETE, PUT Access-Control-Max-Age: 3600 Content-Type: application/json;charset=UTF-8 Date: Tue, 05 Mar 2019 12:00:05 GMT Transfer-Encoding: chunked x-auth-token: aaaba581-8e19-4599-bc30-cfdc1a3f8195 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.9 Cache-Control: max-age=0 Connection: keep-alive Host: localhost:8004 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.81 Safari/537.36
TA贡献1807条经验 获得超9个赞
1、sessionId不同,是因为“没有就创建一个新的”机制。
2、检查浏览器cookie里有没sessionId?
3、查spring boot是否依赖spring session?过滤器是否开启cookie获取sessionId?(默认是,就是不知道该架构改了没)
添加回答
举报
