SpringSource/spring-framework — pull request #56 by tburch (2012-03-09 23:44:11+00:00)
Title: SPR-9216 - Add support for 301 redirects using UrlBasedViewResolver prefixes

When returning the "redirect:" prefix from a method with a RequestMapping, the default behavior is to return a 302 redirect. It would be nice if there was a way to return a 301 or a 302 redirect based on the prefix used (e.g. "redirect:" or "permanentRedirect:").

For SEO, a 301 is more desirable than a 302, and it would be nice to have a way to conveniently return the 301 without having the method return a RedirectView with a 301 as it's StatusCode.

https://jira.springsource.org/browse/SPR-9216

I should already have a SpringSource CLA form on file.