クラス DefaultErrorViewResolver
java.lang.ObjectSE
org.springframework.boot.autoconfigure.web.servlet.error.DefaultErrorViewResolver
- 実装されたすべてのインターフェース:
ErrorViewResolver
,Ordered
よく知られた規則を使用してエラービューを解決しようとするデフォルトの
ErrorViewResolver
実装。status code
と status series
を使用して、'/error'
でテンプレートと静的アセットを検索します。 例: HTTP 404
は(特定の順序で)検索します:
'/<templates>/error/404.<ext>'
'/<static>/error/404.html'
'/<templates>/error/4xx.<ext>'
'/<static>/error/4xx.html'
- 導入:
- 1.4.0
- 作成者:
- Phillip Webb, Andy Wilkinson
フィールドサマリー
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターのサマリー
コンストラクター説明DefaultErrorViewResolver
(ApplicationContext applicationContext, WebProperties.Resources resources) 新しいDefaultErrorViewResolver
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明int
getOrder()
resolveErrorView
(HttpServletRequestEE request, HttpStatus status, MapSE<StringSE, ObjectSE> model) 指定された詳細のエラービューを解決します。void
setOrder
(int order)
コンストラクターの詳細
DefaultErrorViewResolver
public DefaultErrorViewResolver(ApplicationContext applicationContext, WebProperties.Resources resources) 新しいDefaultErrorViewResolver
インスタンスを作成します。- パラメーター:
applicationContext
- ソースアプリケーションコンテキストresources
- リソースプロパティ- 導入:
- 2.4.0
メソッドの詳細
resolveErrorView
public ModelAndView resolveErrorView(HttpServletRequestEE request, HttpStatus status, MapSE<StringSE, ObjectSE> model) インターフェースからコピーされた説明:ErrorViewResolver
指定された詳細のエラービューを解決します。- 次で指定:
- インターフェース
ErrorViewResolver
のresolveErrorView
- パラメーター:
request
- ソースリクエストstatus
- エラーの http ステータスmodel
- ビューで使用する推奨モデル- 戻り値:
- 解決済みの
ModelAndView
またはnull
getOrder
public int getOrder()setOrder
public void setOrder(int order)