クラスの使用
org.springframework.web.servlet.config.annotation.RedirectViewControllerRegistration
org.springframework.web.servlet.config.annotation 内の RedirectViewControllerRegistration 使用
修飾子と型メソッド説明ViewControllerRegistry.addRedirectViewController
(StringSE urlPath, StringSE redirectUrl) 別の URL にリダイレクトするために、ViewController を指定された URL パスまたはパターンにマップします。RedirectViewControllerRegistration.setContextRelative
(boolean contextRelative) スラッシュ("/")で始まる所定のリダイレクト URL を、現在の ServletContext を基準にして解釈するかどうか。RedirectViewControllerRegistration.setKeepQueryParams
(boolean propagate) 現在のリクエストのクエリパラメーターをターゲットリダイレクト URL に伝播するかどうか。RedirectViewControllerRegistration.setStatusCode
(HttpStatusCode statusCode) 使用する特定のリダイレクト 3xx ステータスコードを設定します。