title: Spring Boot & Hibernate Validation's ConstraintMappingContributor
body: <p>The hibernate validations documentation describes how to create ConstraintMappingContributors <a href="https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#section-programmatic-api-contributor" rel="nofollow noreferrer">here</a>.</p>
  
  <p>It states: </p>
  
  <blockquote>
    <p>You then need to specify the fully-qualified class name of the
    contributor implementation in META-INF/validation.xml, using the
    property key hibernate.validator.constraint_mapping_contributors. You
    can specify several contributors by separating them with a comma.</p>
  </blockquote>
  
  <p>Given I have many of these, what would be the most appropriate way to auto-discover these i.e. via @Component and add them <em>dynamically at runtime</em> to the ConstrainMappingConfiguration during Spring Boot startup. </p>
  
  <p>For example.. if a developer creates a new ConstraintMappingContributor, it should be picked up and added automatically when spring boot starts, requiring no other file changes.</p>