クラス ErrorMvcAutoConfiguration
java.lang.ObjectSE
org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
@AutoConfiguration(before=WebMvcAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({jakarta.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class})
@EnableConfigurationProperties({ServerProperties.class,WebMvcProperties.class})
public class ErrorMvcAutoConfiguration
extends ObjectSE
MVC エラーコントローラーを介してエラーをレンダリングする
Auto-configuration
。- 導入:
- 1.0.0
- 作成者:
- Dave Syer, Andy Wilkinson, Stephane Nicoll, Brian Clozel, Scott Frederick
ネストされたクラスのサマリー
ネストされたクラスコンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明basicErrorController
(ErrorAttributes errorAttributes, ObjectProvider<ErrorViewResolver> errorViewResolvers) org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer
errorPageCustomizer
(DispatcherServletPath dispatcherServletPath) static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor
コンストラクターの詳細
ErrorMvcAutoConfiguration
メソッドの詳細
errorAttributes
@Bean @ConditionalOnMissingBean(value=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes()basicErrorController
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(ErrorAttributes errorAttributes, ObjectProvider<ErrorViewResolver> errorViewResolvers) errorPageCustomizer
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer errorPageCustomizer(DispatcherServletPath dispatcherServletPath) preserveErrorControllerTargetClassPostProcessor
@Bean public static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()