title: Spring Bean Validation with configurable constraint values
body: <p>I'd like to make Java Bean Validation constraints configurable by Spring, possibly by using properties. An example:</p>
  
  <pre><code>class Pizza {
  
      @MaxGramsOfCheese(max = "${application.pizza.cheese.max-grams}")
      int gramsOfCheese;
  
  }
  </code></pre>
  
  <p>I haven't been able to get this to work or find much documentation about this.</p>
  
  <p>Is something like this even possible? I know that messages are configurable in a Validationmessages.properties file, so I'm hoping something similar is possible for constraint values.</p>