@ConditionalOnClass(value={, }) public class ErrorMvcAutoConfiguration extends Object implements EmbeddedServletContainerCustomizer
Auto-configuration to render errors via a MVC error
controller.| Constructor and Description |
|---|
ErrorMvcAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
BasicErrorController |
basicErrorController() |
void |
customize(ConfigurableEmbeddedServletContainerFactory factory)
Customize the specified
ConfigurableEmbeddedServletContainerFactory. |
View |
defaultErrorView() |
@Bean @ConditionalOnMissingBean(value=ErrorController.class) public BasicErrorController basicErrorController()
public void customize(ConfigurableEmbeddedServletContainerFactory factory)
EmbeddedServletContainerCustomizerConfigurableEmbeddedServletContainerFactory.customize in interface EmbeddedServletContainerCustomizerfactory - the factory to customize@Bean(name="error") @ConditionalOnMissingBean(name="error") public View defaultErrorView()
Copyright © 2013. All rights reserved.