Clarifying Spring context:property-placeholder local-override usage

I'm using a local override to specify a property and wanted to confirm that this just applies to properties that are specified in the applicationContext. Basically I want to make sure that this doesn't have any unexpected consequences...

<context:property-placeholder
    properties-ref="defaultProperties"
    location="classpath:my.properties"
    ignore-resource-not-found="true"
    ignoreunresolvable="true"
    local-override="true"/>

<util:properties id="defaultProperties">
    <prop key="some.property">${overriding.property}</prop>
</util:properties>

No properties except ${some.property} will be overridden, yes?

Answers


No properties except ${some.property} will be overridden with below code:

<context:property-placeholder  properties-ref="defaultProperties" location="classpath:my.properties, "ignore-resource-not-found="true" ignoreunresolvable="true" local-override="true"/> 

<bean id="defaultProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
<property name="properties">
    <util:properties local-override="true">
        <prop key="some.property">${overriding.property}</prop>
    </util:properties>
</property>


Need Your Help

SQL Server 2005- Add area code to records shorter than 10 characters

sql sql-server sql-server-2005

Can anyone come up with a SQL routine or ideas to systematically append an area code to the beginning of every field in our SQL Server 2005 database that does not have an area code in it?

Source Control - Distributed Systems vs. Non Distributed - What's the difference?

version-control tfs mercurial dvcs

I just read Spolsky's last piece about Distributed vs. Non-Distributed version control systems http://www.joelonsoftware.com/items/2010/03/17.html. What's the difference between the two? Our compan...