アプリケーション メッセージをプロパティ ファイルに外部化したい。Spring を使用してプロパティ ファイルを読み込んでいます。
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:applicationmessage.properties</value>
</list>
</property>
<property name="ignoreResourceNotFound" value="true" />
私はパラとのメッセージを持っています
message.myMessage = Couldn't find resource for customer id {0} and business unit {1}
このメッセージを Java ファイルからパラメータで読み取る最良の方法は何ですか? メッセージを外部化する他のアプローチはありますか。