when springMvc processes HttpRepsonse, set response.setStatus (301)
and response.sendRedirect ("/ hello") at the same time;, HTTP response Headers status is 302
when
it"s the same with changing the positions of the two, so I"d like to understand the specific principle
.
related codes
// output
Request URL: http://localhost:9999/account/list
Request Method: GET
Status Code: 302
Remote Address: [::1]:9999
Referrer Policy: no-referrer-when-downgrade
HTTP/1.1 302
Location: http://localhost:9999/hello
Content-Length: 0
Date: Sun, 29 Jul 2018 17:38:31 GMT