回傳值為:<302 Found,{X-XSS-Protection=[1; mode=block], Cache-Control=[no-cache, no-store, max-age=0, must-revalidate], Pragma=[no-cache], Expires=[0], X-Application-Context=[gateway:8080], Set-Cookie=[SESSION=2cd8a943-796c-4966-989e-e272f7512e8a; Path=/; HttpOnly], Location=[http://localhost:8080/admin/main], Content-Language=[zh-CN], Content-Length=[0], Date=[Wed, 07 Apr 2021 09:03:04 GMT]}>
其中將Set-Cookie中的SESSION的值復制到瀏覽器的application中,重繪頁面,顯示用戶已經登錄。求大佬如何將回傳值中的SESSIOIN值取出,又如何將這個值放入到瀏覽器中,下圖為瀏覽器中放入session值的位置
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/273448.html
標籤:Java相關
