@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(ApplicationContext applicationContext,
ServerProperties serverProperties,
ResourceProperties resourceProperties) |
public ErrorMvcAutoConfiguration(ApplicationContext applicationContext, ServerProperties serverProperties, ResourceProperties resourceProperties)
@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 @ConditionalOnBean(value=org.springframework.web.servlet.DispatcherServlet.class) @ConditionalOnMissingBean public DefaultErrorViewResolver conventionErrorViewResolver()
@Bean public static org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.