@Configuration @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 org.springframework.validation.beanvalidation.LocalValidatorFactoryBean |
defaultValidator() |
static org.springframework.validation.beanvalidation.MethodValidationPostProcessor |
methodValidationPostProcessor(org.springframework.core.env.Environment environment,
Validator validator) |
@Bean @Role(value=2) @ConditionalOnMissingBean(value=javax.validation.Validator.class) public static org.springframework.validation.beanvalidation.LocalValidatorFactoryBean defaultValidator()
@Bean @ConditionalOnMissingBean public static org.springframework.validation.beanvalidation.MethodValidationPostProcessor methodValidationPostProcessor(org.springframework.core.env.Environment environment, @Lazy Validator validator)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.