Placeholder configurers allow for trimming of property values
Issue: SPR-5839
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<beans xmlns="http://www.springframework.org/schema/beans"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:context="http://www.springframework.org/schema/context"
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
|
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
|
||||
|
||||
<context:property-placeholder
|
||||
location="classpath*:/org/springframework/context/config/test-*.properties,classpath*:/org/springframework/context/config/empty-*.properties,classpath*:/org/springframework/context/config/missing-*.properties"
|
||||
file-encoding="ISO-8859-1"/>
|
||||
file-encoding="ISO-8859-1" trim-values="true"/>
|
||||
|
||||
<bean id="foo" class="java.lang.String">
|
||||
<constructor-arg value="${foo}"/>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
bar=foo
|
||||
spam=maps
|
||||
bar= foo\t
|
||||
spam=\tmaps
|
||||
|
||||
Reference in New Issue
Block a user