title: Hibernate validator could not get value by key
body: <p>My project use spring mvc and hibernate validator .And I am trying to make it support multi-language.
  This is my spring-i18N file</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd"&gt;
  
      &lt;mvc:interceptors&gt;
          &lt;bean id="localeChangeInterceptor" class="org.springframework.web.servlet.i18n.LocaleChangeInterceptor"&gt;
              &lt;property name="paramName" value="lang"/&gt;
          &lt;/bean&gt;
      &lt;/mvc:interceptors&gt;
  
  
      &lt;bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver"&gt;
          &lt;property name="cookieMaxAge" value="604800"/&gt;
          &lt;property name="defaultLocale" value="zh_CN" /&gt;
          &lt;property name="cookieName" value="language"&gt;&lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"&gt;
          &lt;property name="basenames"&gt;
              &lt;list&gt;
                  &lt;value&gt;classpath:i18N/messages&lt;/value&gt;
                  &lt;value&gt;classpath:i18N/validation&lt;/value&gt;
              &lt;/list&gt;
          &lt;/property&gt;
             &lt;property name="defaultEncoding" value="UTF-8" /&gt;
          &lt;property name="useCodeAsDefaultMessage" value="false"/&gt;
      &lt;/bean&gt;
  
      &lt;mvc:annotation-driven validator="validator" /&gt;
  
      &lt;bean id="validator" class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean"&gt;
        &lt;property name="providerClass" value="org.hibernate.validator.HibernateValidator"/&gt;
        &lt;property name="validationMessageSource" ref="messageSource"/&gt;
      &lt;/bean&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>And my problem is,while I use annotations in bean file,like this,</p>
  
  <pre><code>@Size(min=6, max=25,message="{password_length_require}")
  private String password;
  </code></pre>
  
  <p>and in the validation_en_US.properties,I do this</p>
  
  <pre><code>password_length_require=The password length require more than 5 and less 25
  </code></pre>
  
  <p>The result is that page will output "{password_length_require} ".
  On the other hand,in my controller,I use </p>
  
  <pre><code>bindingResult.rejectValue("password", "password_length_require");
  </code></pre>
  
  <p>It will work fine...</p>
  
  <p>Can anybody help me?</p>