public class DefaultErrorViewResolver extends ObjectSE implements 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'
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
DefaultErrorViewResolver(ApplicationContext applicationContext, WebProperties.Resources resources) 新しい DefaultErrorViewResolver インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
int | getOrder() |
ModelAndView | resolveErrorView(HttpServletRequestEE request, HttpStatus status, MapSE<StringSE, ObjectSE> model) 指定された詳細のエラービューを解決します。 |
void | setOrder(int order) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public DefaultErrorViewResolver(ApplicationContext applicationContext, WebProperties.Resources resources)
DefaultErrorViewResolver
インスタンスを作成します。applicationContext
- ソースアプリケーションコンテキスト resources
- リソースプロパティ public ModelAndView resolveErrorView(HttpServletRequestEE request, HttpStatus status, MapSE<StringSE,ObjectSE> model)
ErrorViewResolver
ErrorViewResolver
の resolveErrorView
request
- ソースリクエスト status
- エラーの http ステータス model
- ビューで使用する推奨モデル ModelAndView
または null
public void setOrder(int order)