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