src/main/java/it/cnit/iwf_repository/constraints/RestValidationConfiguration.java
// Create a validator to use in bean validation - primary to be able to autowire without qualifier
Create a validator to use in bean validation - primary to be able to autowire without qualifier
Create a validator to use in bean validation - primary to be able to autowire without qualifier
@Bean
  @Primary
  Validator validator() {
    return new LocalValidatorFactoryBean();
  }
@ Bean @ Primary Validator validator ( ) { return new LocalValidatorFactoryBean ( ) ; }
Create a validator to use in bean validation - primary to be able to autowire without qualifier
Create a validator to use in bean validation - primary to be able to autowire without qualifier