クラスの使用
org.springframework.web.servlet.resource.NoResourceFoundException
NoResourceFoundException を使用するパッケージ
パッケージ
説明
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。MVC コントローラーのサポートパッケージ。
org.springframework.web.servlet.mvc.method.annotation 内の NoResourceFoundException 使用
型 NoResourceFoundException のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected ResponseEntity<ObjectSE>
ResponseEntityExceptionHandler.handleNoResourceFoundException
(NoResourceFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) NoResourceFoundException
の処理をカスタマイズします。org.springframework.web.servlet.mvc.support 内の NoResourceFoundException 使用
型 NoResourceFoundException のパラメーターを持つ org.springframework.web.servlet.mvc.support のメソッド修飾子と型メソッド説明protected ModelAndView
DefaultHandlerExceptionResolver.handleNoResourceFoundException
(NoResourceFoundException ex, HttpServletRequestEE request, HttpServletResponseEE response, ObjectSE handler) 静的リソースが見つからなかった場合に対処します。