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