@Configuration @ConditionalOnWebApplication @ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @EnableConfigurationProperties(value=ResourceProperties.class) public class ErrorMvcAutoConfiguration extends Object
Auto-configuration
to render errors via an MVC error
controller.Modifier and Type | Class and Description |
---|---|
protected static class |
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration |
Constructor and Description |
---|
ErrorMvcAutoConfiguration(ServerProperties serverProperties,
ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider) |
public ErrorMvcAutoConfiguration(ServerProperties serverProperties, ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider)
@Bean @ConditionalOnMissingBean(value=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes()
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(ErrorAttributes errorAttributes)
@Bean public org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.ErrorPageCustomizer errorPageCustomizer()
@Bean public static org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.