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