のApplicationContext-service.xmlに春:ロケールのコードの下では見つかりませんでしたメッセージである 'en_US'
<bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basenames">
<list><value>messages</value></list>
</property>
</bean>
私はこれがのラインである/src/messages_en_US.properties下messages_en_US.properties
registerForm.passwordNotMatch=Password does not match.
を持っていますコードがエラーを表示しています:
binding.addError(new FieldError(REGISTER_FORM, "passwordNotMatch", messageSource.getMessage("registerForm.passwordNotMatch", null, locale)));
エラー:コード 'registerForm.passwordNotMaでメッセージが見つかりませんでしたロケール 'en_US'の場合は「tch」です。
何が問題なのでしょうか?
classpath:messages
:あなたが変更した場合
'applicationContext-Service.xml'はどこに宣言されていますか? – skaffman