Package | Description |
---|---|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
Modifier and Type | Method and 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(HttpStatus statusCode)
Set the specific redirect 3xx status code to use.
|