Class ErrorMvcAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration
@AutoConfiguration(before=WebMvcAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass({jakarta.servlet.Servlet.class,org.springframework.web.servlet.DispatcherServlet.class})
@EnableConfigurationProperties({ServerProperties.class,WebMvcProperties.class})
public class ErrorMvcAutoConfiguration
extends Object
Auto-configuration
to render errors through an MVC
error controller.- Since:
- 1.0.0
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbasicErrorController
(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes, org.springframework.beans.factory.ObjectProvider<ErrorViewResolver> errorViewResolvers) org.springframework.boot.web.servlet.error.DefaultErrorAttributes
org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer
errorPageCustomizer
(DispatcherServletPath dispatcherServletPath) static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor
-
Constructor Details
-
ErrorMvcAutoConfiguration
-
-
Method Details
-
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, org.springframework.beans.factory.ObjectProvider<ErrorViewResolver> errorViewResolvers) -
errorPageCustomizer
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.ErrorPageCustomizer errorPageCustomizer(DispatcherServletPath dispatcherServletPath) -
preserveErrorControllerTargetClassPostProcessor
@Bean public static org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.PreserveErrorControllerTargetClassPostProcessor preserveErrorControllerTargetClassPostProcessor()
-