@Configuration(proxyBeanMethods=false) @ConditionalOnClass(value=javax.validation.executable.ExecutableValidator.class) @ConditionalOnResource(resources="classpath:META-INF/services/javax.validation.spi.ValidationProvider") @Import(value=org.springframework.boot.autoconfigure.validation.PrimaryDefaultValidatorPostProcessor.class) public class ValidationAutoConfiguration extends Object
Auto-configuration
to configure the validation
infrastructure.Constructor and Description |
---|
ValidationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static LocalValidatorFactoryBean |
defaultValidator() |
static MethodValidationPostProcessor |
methodValidationPostProcessor(Environment environment,
Validator validator,
ObjectProvider<MethodValidationExcludeFilter> excludeFilters) |
@Bean @Role(value=2) @ConditionalOnMissingBean(value=javax.validation.Validator.class) public static LocalValidatorFactoryBean defaultValidator()
@Bean @ConditionalOnMissingBean public static MethodValidationPostProcessor methodValidationPostProcessor(Environment environment, @Lazy Validator validator, ObjectProvider<MethodValidationExcludeFilter> excludeFilters)