I want to determine the default property value in a Spring XML configuration file. I want this default to be null .
Something like that:
... <ctx:property-placeholder location="file://${configuration.location}" ignore-unresolvable="true" order="2" properties-ref="defaultConfiguration"/> <util:properties id="defaultConfiguration"> <prop key="email.username" > <null /> </prop> <prop key="email.password"> <null /> </prop> </util:properties> ...
This does not work. Is it even possible to define default null values ββfor properties in a Spring XML configuration?
spring null properties default-value
Ondrej Bozek May 24 '13 at 12:36 2013-05-24 12:36
source share