Set whether redirects should stay compatible with HTTP 1.0 clients.
In the default implementation, this will enforce HTTP status code 302
in any case, i.e. delegate to HttpServletResponse.sendRedirect .
Turning this off will send HTTP status code 303, which is the correct
code for HTTP 1.1 clients, but not understood by HTTP 1.0 clients.
Many HTTP 1.1 clients treat 302 just like 303, not making any
difference. However, some clients depend on 303 when redirecting
after a POST request; turn this flag off in such a scenario.
Redirect URLs can be specified via the "redirect:" prefix.
E.g.: "redirect:myAction.do"
See Also: RedirectView.setHttp10Compatible See Also: SuffixViewResolver.REDIRECT_URL_PREFIX |