@ConditionalOnClass(value={, }) @ConditionalOnWebApplication @Configuration public class ErrorMvcAutoConfiguration extends Object implements EmbeddedServletContainerCustomizer
Auto-configuration
to render errors via a MVC error
controller.Modifier and Type | Class and Description |
---|---|
protected static class |
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration |
Constructor and Description |
---|
ErrorMvcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
BasicErrorController |
basicErrorController(ErrorAttributes errorAttributes) |
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
DefaultErrorAttributes |
errorAttributes() |
@Bean @ConditionalOnMissingBean(value=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes()
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(ErrorAttributes errorAttributes)
public void customize(ConfigurableEmbeddedServletContainer container)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainer
.customize
in interface EmbeddedServletContainerCustomizer
container
- the container to customizeCopyright © 2014 Pivotal Software, Inc.. All rights reserved.