spring property substitution for test and production
several approaches: 1. ‘Order’ Property in src/main/resources/your-conf.xml <context:property-placeholder location=”classpath:esb-project-config.properties” order=”1″/> in src/test/resources/your-test-config.xml <context:property-placeholder location=”classpath:esb-project-config.properties” order=”0″/> If you running your test with src/test/resources as a test classpath, the above will ensure to override src/main/resources/esb-project-config.properties with the src/test/resources/esb-project-config.properties. This will override the whole property-placeholder though, so you would have to provide all the properties needed in your … Read more