@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.DefaultValidatorConfiguration.class,org.springframework.boot.autoconfigure.validation.Jsr303ValidatorAdapterConfiguration.class}) public class ValidationAutoConfiguration extends Object
Auto-configuration
to configure the validation
infrastructure.Constructor and Description |
---|
ValidationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static MethodValidationPostProcessor |
methodValidationPostProcessor(Environment environment,
Validator validator) |
@Bean @ConditionalOnBean(value=javax.validation.Validator.class) @ConditionalOnMissingBean public static MethodValidationPostProcessor methodValidationPostProcessor(Environment environment, Validator validator)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.