@Configuration @ConditionalOnClass(value=javax.validation.executable.ExecutableValidator.class) @ConditionalOnResource(resources="classpath:META-INF/services/javax.validation.spi.ValidationProvider") public class ValidationAutoConfiguration extends Object
Auto-configuration
to configure the validation
infrastructure.Constructor and Description |
---|
ValidationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static Validator |
jsr303Validator() |
static MethodValidationPostProcessor |
methodValidationPostProcessor(Validator validator) |
@Bean @Role(value=2) @ConditionalOnMissingBean public static Validator jsr303Validator()
@Bean @ConditionalOnMissingBean public static MethodValidationPostProcessor methodValidationPostProcessor(Validator validator)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.