@ConditionalOnClass(value={javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @ConditionalOnWebApplication @Configuration public class ErrorMvcAutoConfiguration extends Object implements EmbeddedServletContainerCustomizer, Ordered
Auto-configuration
to render errors via a MVC error
controller.Modifier and Type | Class and Description |
---|---|
protected static class |
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
ErrorMvcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
BasicErrorController |
basicErrorController(ErrorAttributes errorAttributes) |
void |
customize(ConfigurableEmbeddedServletContainer container)
Customize the specified
ConfigurableEmbeddedServletContainer . |
DefaultErrorAttributes |
errorAttributes() |
int |
getOrder() |
@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 © 2015 Pivotal Software, Inc.. All rights reserved.