Class BroadleafErrorsWebAutoConfiguration
java.lang.Object
com.broadleafcommerce.common.error.validation.web.autoconfigure.BroadleafErrorsWebAutoConfiguration
@Configuration
@AutoConfigureBefore(name={"org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration","org.springframework.boot.webmvc.autoconfigure.error.ErrorMvcAutoConfiguration"})
@ConditionalOnWebApplication
@EnableConfigurationProperties(BroadleafExceptionHandlerProperties.class)
public class BroadleafErrorsWebAutoConfiguration
extends Object
Auto configuration for exception handling for validation. Dual-compatible with both Spring Boot
3.x and 4.0.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProgrammatic bean registrar to register the 'errorAttributes' bean with the correct targetType, allowing conditional checks (e.g. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
BroadleafErrorsWebAutoConfiguration
public BroadleafErrorsWebAutoConfiguration()
-
-
Method Details
-
exceptionAdvisorUtils
@Bean @ConditionalOnMissingBean public ExceptionHandlerUtils exceptionAdvisorUtils(BroadleafExceptionHandlerProperties properties)
-