Class ErrorMvcAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
@Configuration @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass({javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @AutoConfigureBefore(WebMvcAutoConfiguration.class) @EnableConfigurationProperties({ServerProperties.class,ResourceProperties.class,WebMvcProperties.class}) public class ErrorMvcAutoConfiguration extends Object
Auto-configuration
to render errors via an MVC error controller.
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration
Constructor Summary
Constructors Constructor Description ErrorMvcAutoConfiguration(ServerProperties serverProperties, DispatcherServletPath dispatcherServletPath, org.springframework.beans.factory.ObjectProvider<ErrorViewResolver> errorViewResolvers)
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicErrorController
basicErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
org.springframework.boot.web.servlet.error.DefaultErrorAttributes
errorAttributes()
org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer
errorPageCustomizer()
static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor
preserveErrorControllerTargetClassPostProcessor()
Constructor Detail
ErrorMvcAutoConfiguration
public ErrorMvcAutoConfiguration(ServerProperties serverProperties, DispatcherServletPath dispatcherServletPath, org.springframework.beans.factory.ObjectProvider<ErrorViewResolver> errorViewResolvers)
Method Detail
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)
errorPageCustomizer
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer errorPageCustomizer()
preserveErrorControllerTargetClassPostProcessor
@Bean public static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()