Spring(3.1) プロファイルを使用して、プロパティ ファイルを util:properties にロードしています。
<beans profile="local">
<util:properties id="myProps"
location="classpath:local.properties" />
</beans>
<beans profile="dev">
<util:properties id="myProps"
location="classpath:dev.properties" />
</beans>
そして、ランタイム パラメータ (TC サーバーで実行) を介してプロファイルを呼び出します。-Dspring.profiles.active=local
しかし、私はエラーが発生しますThere are multiple occurrences of ID value 'myProps'
これは以前は他の Bean 定義で実行されていましたutil:properties
が、追加するとエラーが発生します。