クラス DefaultErrorViewResolver

java.lang.ObjectSE
org.springframework.boot.autoconfigure.web.servlet.error.DefaultErrorViewResolver
実装されたすべてのインターフェース:
ErrorViewResolverOrdered

public class DefaultErrorViewResolver extends ObjectSE implements ErrorViewResolver, Ordered
よく知られた規則を使用してエラービューを解決しようとするデフォルトの ErrorViewResolver 実装。status codestatus 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
  • コンストラクターの詳細

    • DefaultErrorViewResolver

      public DefaultErrorViewResolver(ApplicationContext applicationContext, WebProperties.Resources resources)
      新しい DefaultErrorViewResolver インスタンスを作成します。
      パラメーター:
      applicationContext - ソースアプリケーションコンテキスト
      resources - リソースプロパティ
      導入:
      2.4.0
  • メソッドの詳細