Class ErrorMvcAutoConfiguration

java.lang.Object
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 Object
Auto-configuration to render errors through an MVC error controller.
Since:
1.0.0
  • Constructor Details

    • ErrorMvcAutoConfiguration

      public ErrorMvcAutoConfiguration(ServerProperties serverProperties)
  • Method Details

    • errorAttributes

      @Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.servlet.error.ErrorAttributes.class, search=CURRENT) public org.springframework.boot.web.servlet.error.DefaultErrorAttributes errorAttributes()
    • basicErrorController

      @Bean @ConditionalOnMissingBean(value=org.springframework.boot.web.servlet.error.ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, org.springframework.beans.factory.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()