Reputation: 16525
in my application context in spring I have defined a map:
<util:map map-class="java.util.concurrent.ConcurrentHashMap">
<entry key="test" value="here I need to add new line" />
</util:map>
in value I need to add new line:
I try:
<entry key="test" value="s
s" />
or
<entry key="test" value="s\ns" />
but with no success
please help me
Upvotes: 2
Views: 1173
Reputation: 136012
try http://en.wikipedia.org/wiki/Numeric_character_reference
<util:map id="map" map-class="java.util.concurrent.ConcurrentHashMap">
<entry key="test" value="s s" />
</util:map>
Upvotes: 2