# Uses of Class
org.springframework.web.servlet.config.annotation.RedirectViewControllerRegistration

Packages that use RedirectViewControllerRegistration
Package
Description
org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.

## Uses of RedirectViewControllerRegistration in org.springframework.web.servlet.config.annotation

Methods in org.springframework.web.servlet.config.annotation that return RedirectViewControllerRegistration
Modifier and Type
Method
Description
`RedirectViewControllerRegistration`
ViewControllerRegistry.`addRedirectViewController(String urlPath, String redirectUrl)`
Map a view controller to the given URL path or pattern in order to redirect to another URL.
`RedirectViewControllerRegistration`
RedirectViewControllerRegistration.`setContextRelative(boolean contextRelative)`
Whether to interpret a given redirect URL that starts with a slash ("/") as relative to the current ServletContext, i.e.
`RedirectViewControllerRegistration`
RedirectViewControllerRegistration.`setKeepQueryParams(boolean propagate)`
Whether to propagate the query parameters of the current request through to the target redirect URL.
`RedirectViewControllerRegistration`
RedirectViewControllerRegistration.`setStatusCode(org.springframework.http.HttpStatusCode statusCode)`
Set the specific redirect 3xx status code to use.