类 ErrorMvcAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration
@Configuration @ConditionalOnWebApplication @ConditionalOnClass({javax.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class}) @EnableConfigurationProperties(ResourceProperties.class) public class ErrorMvcAutoConfiguration extends Object
Auto-configuration
to render errors via an MVC error controller.
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static class
ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration
构造器概要
构造器 构造器 说明 ErrorMvcAutoConfiguration(ServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider)
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 BasicErrorController
basicErrorController(ErrorAttributes errorAttributes)
DefaultErrorAttributes
errorAttributes()
org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.ErrorPageCustomizer
errorPageCustomizer()
static org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor
preserveErrorControllerTargetClassPostProcessor()
构造器详细资料
ErrorMvcAutoConfiguration
public ErrorMvcAutoConfiguration(ServerProperties serverProperties, org.springframework.beans.factory.ObjectProvider<List<ErrorViewResolver>> errorViewResolversProvider)
方法详细资料
errorAttributes
@Bean @ConditionalOnMissingBean(value=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes()
basicErrorController
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(ErrorAttributes errorAttributes)
errorPageCustomizer
@Bean public org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.ErrorPageCustomizer errorPageCustomizer()
preserveErrorControllerTargetClassPostProcessor
@Bean public static org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()