use of org.springframework.validation.beanvalidation.LocalValidatorFactoryBean in project nixmash-blog by mintster.
the class WebConfig method validator.
@Bean(name = "validator")
public LocalValidatorFactoryBean validator() {
LocalValidatorFactoryBean bean = new LocalValidatorFactoryBean();
bean.setValidationMessageSource(messageSource());
return bean;
}
use of org.springframework.validation.beanvalidation.LocalValidatorFactoryBean in project formation-jenkins by x2i-tvercruysse.
the class ValidatorTests method createValidator.
private Validator createValidator() {
LocalValidatorFactoryBean localValidatorFactoryBean = new LocalValidatorFactoryBean();
localValidatorFactoryBean.afterPropertiesSet();
return localValidatorFactoryBean;
}
Aggregations