Spring Boot为什么将;jsessionid
附加到AWS中的路径而不是本地?当这样做时,Spring Security会抱怨并引发错误。
$ curl -i -k https://app.country-region-9.elasticbeanstalk.com/admin/login -d username=admin -d password=admin
HTTP/1.1 302 Found
Location: /admin/home;jsessionid=48849AE35B8900FAD2389A7839C26742
Set-Cookie: JSESSIONID=48849AE35B8900FAD2389A7839C26742; Path=/; Secure; HttpOnly
$ curl -i -k http://127.0.0.1:8080/admin/login -d username=admin -d password=admin
HTTP/1.1 302
Set-Cookie: JSESSIONID=95E6D82DC7406C2A472DC6FC9A056A9C; Path=/; HttpOnly
Location: http://127.0.0.1:8080/admin/home
我有
server.session.tracking-modes=cookie
Spring Boot 1.5.20