クラスの使用
org.springframework.web.servlet.config.annotation.ViewControllerRegistration
org.springframework.web.servlet.config.annotation 内の ViewControllerRegistration 使用
修飾子と型メソッド説明ViewControllerRegistry.addViewController
(StringSE urlPathOrPattern) URL パスまたはパターンを ViewController にマップして、構成されたステータスコードとビューでレスポンスをレンダリングします。ViewControllerRegistration.setStatusCode
(HttpStatusCode statusCode) レスポンスに設定するステータスコードを設定します。