will and way

ただの自分用メモを人に伝える形式で書くことでわかりやすくまとめてるはずのブログ

Propertyファイルを複数選択する

複数読み込み <context:property-placeholder order="1" location="classpath:properties/hogehoge.properties" /> <context:property-placeholder order="2" location="classpath:properties/hugahuga.properties" /> 以上のようにして、複数ファイルを定義することが出来る。 hogehoge, hugahuga内に重複があるとSpringでは起動時にエラーになる。 肝はorder 環境…</context:property-placeholder></context:property-placeholder>