use of org.springframework.validation.beanvalidation.MethodValidationPostProcessor in project spring-boot by spring-projects.
the class ValidationAutoConfiguration method methodValidationPostProcessor.
@Bean
@ConditionalOnMissingBean
public static MethodValidationPostProcessor methodValidationPostProcessor(Validator validator) {
MethodValidationPostProcessor processor = new MethodValidationPostProcessor();
processor.setProxyTargetClass(true);
processor.setValidator(validator);
return processor;
}
use of org.springframework.validation.beanvalidation.MethodValidationPostProcessor in project av-service by dvoraka.
the class SpringWebConfig method methodValidationPostProcessor.
@Bean
public MethodValidationPostProcessor methodValidationPostProcessor(Validator validator) {
MethodValidationPostProcessor processor = new MethodValidationPostProcessor();
processor.setValidator(validator);
return processor;
}
use of org.springframework.validation.beanvalidation.MethodValidationPostProcessor in project xm-ms-entity by xm-online.
the class ValidationConfig method methodValidationPostProcessor.
@Bean
public MethodValidationPostProcessor methodValidationPostProcessor() {
final MethodValidationPostProcessor methodValidationPostProcessor = new MethodValidationPostProcessor();
methodValidationPostProcessor.setValidator(validator());
return methodValidationPostProcessor;
}
use of org.springframework.validation.beanvalidation.MethodValidationPostProcessor in project mica2 by obiba.
the class ValidationConfiguration method methodValidationPostProcessor.
@Bean
public MethodValidationPostProcessor methodValidationPostProcessor() {
MethodValidationPostProcessor processor = new MethodValidationPostProcessor();
processor.setValidator(validator());
return processor;
}
Aggregations