Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Context namespace exposes null-value attribute for property-placehold…
…er element Issue: SPR-13461
- Loading branch information
Showing
6 changed files
with
56 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 10 additions & 4 deletions
14
...ources/org/springframework/context/config/contextNamespaceHandlerTests-replace-ignore.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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" | ||
xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd | ||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd"> | ||
xmlns:util="http://www.springframework.org/schema/util" | ||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd | ||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.2.xsd | ||
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.2.xsd"> | ||
|
||
<util:properties id="placeholderProps"> | ||
<prop key="foo">bar</prop> | ||
<prop key="baz"></prop> | ||
</util:properties> | ||
|
||
<context:property-placeholder properties-ref="placeholderProps" ignore-unresolvable="true"/> | ||
<context:property-placeholder properties-ref="placeholderProps" ignore-unresolvable="true" null-value=""/> | ||
|
||
<bean id="string" class="java.lang.String"> | ||
<constructor-arg value="${bar}"/> | ||
</bean> | ||
|
||
<bean id="nullString" class="java.lang.String" factory-method="valueOf"> | ||
<constructor-arg type="java.lang.Object" value="${baz}"/> | ||
</bean> | ||
|
||
</beans> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters