@ConditionalOnClass(value={, }) @ConditionalOnWebApplication 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() |
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController()
public void customize(ConfigurableEmbeddedServletContainer container)
EmbeddedServletContainerCustomizer
ConfigurableEmbeddedServletContainer
.customize
in interface EmbeddedServletContainerCustomizer
container
- the container to customizeCopyright © 2014. All rights reserved.