title: spring mvc validation messages
body: <p>I have a problem figuring out how to pass validation properties from spring to the externalized messages. I am using spring 4, and already included "validation-api-1.1.0.Final" and "hibernate-validator-5.2.1.Final". </p>
  
  <p>my Model:</p>
  
  <pre><code>@Size(min=20, max=64)
  private String email;
  </code></pre>
  
  <p>I am still getting the message of "<strong>email shouldn't be empty TCH {2} {1} {0}</strong>" when I return to the form.  </p>
  
  <p>My validationMessages.properties has the following line in it:  </p>
  
  <ul>
  <li>Size.virement.email=email shouldn't be empty TCH {2} {1} {0}</li>
  </ul>
  
  <p>I also tried using <em>{min}</em> and <em>{max}</em>, as well as <em>%1</em> and <em>%0</em>. None of these work.  </p>
  
  <p>My xml config for spring has the following configuration:  </p>
  
  <pre><code>&lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
          &lt;property name="basenames"&gt;
              &lt;list&gt;
                  &lt;value&gt;classpath:content/ValidationMessages&lt;/value&gt;
                  &lt;value&gt;classpath:content/Language&lt;/value&gt;
                  ...
              &lt;/list&gt;
          &lt;/property&gt;
          &lt;property name="defaultEncoding" value="UTF-8"/&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>I also did include the <em>spring-context-4.1.5.RELEASE</em> library.  </p>
  
  <p>Any idea ??<br>
  Note that I am using thymeleaf to render the view.  </p>
  
  <p>Thx in advance.</p>