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
- Author:
- Dave Syer, Andy Wilkinson, Stephane Nicoll, Brian Clozel, Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbasicErrorController
(ErrorAttributes errorAttributes, ObjectProvider<ErrorViewResolver> errorViewResolvers) 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=ErrorAttributes.class, search=CURRENT) public DefaultErrorAttributes errorAttributes() -
basicErrorController
@Bean @ConditionalOnMissingBean(value=ErrorController.class, search=CURRENT) public BasicErrorController basicErrorController(ErrorAttributes errorAttributes, 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()
-