title: How I change ValidationMessages.properties with Hibernate Validator?
body: <p>I am trying modify default ValidationMessages.properties to other. But I not get it.</p>
  
  <p>My setup:</p>
  
  <p>In Spring.</p>
  
  <pre><code>&lt;bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"&gt;
      &lt;property name="basenames"&gt;
          &lt;list&gt;
              &lt;value&gt;text&lt;/value&gt;
              &lt;value&gt;error&lt;/value&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean name="validator"
        class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"&gt;
      &lt;property name="validationMessageSource"&gt;
          &lt;ref bean="messageSource"/&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <hr>
  
  <p>In text.properties and tex_XX.properties.</p>
  
  <pre><code>edit.profile.password.size=Password must be between {min} and {max}
  </code></pre>
  
  <p>Annotation example.</p>
  
  <pre><code>@Size(min=4, max=8, message="{edit.profile.password.size}")
  </code></pre>