类的使用
cn.taketoday.web.config.RedirectViewControllerRegistration
-
cn.taketoday.web.config中RedirectViewControllerRegistration的使用
修饰符和类型字段说明private final List<RedirectViewControllerRegistration>ViewControllerRegistry.redirectRegistrations修饰符和类型方法说明ViewControllerRegistry.addRedirectViewController(String pathPattern, String redirectUrl) Map a view controller to the given URL path or pattern in order to redirect to another URL.RedirectViewControllerRegistration.setContextRelative(boolean contextRelative) Whether to interpret a given redirect URL that starts with a slash ("/") as relative to the current ServletContext, i.e. as relative to the web application root.RedirectViewControllerRegistration.setKeepQueryParams(boolean propagate) Whether to propagate the query parameters of the current request through to the target redirect URL.RedirectViewControllerRegistration.setStatusCode(HttpStatusCode statusCode) Set the specific redirect 3xx status code to use.