I have a bean defined in my xml:
<bean class="myClass">
<property name="abc">
<value="${a}
${b}
${c}
" /></property>
</bean>
I don't want to put the values in one line. I want it to be in separate lines.
Property file:
a=abc'
b=def
c='xyz
The value in run time will be:
acb' def 'xyz
How do I remove the white spaces from the value using springutils?
<bean class="myClass">
<property name="abc">
<bean class="org.springframework.util.StringUtils"
factory-method="trimWhitespace">
<constructor-arg type="java.lang.String">
<value="${a}
${b}
${c}
" /></bean></property>
</bean>
I'm looking for something like this - where I want to use trim function from java.lang.String:
<bean id="numberGuess" class="org.spring.samples.NumberGuess">
<property name="randomNumber" value="#{ T(java.lang.Math).random() * 100.0 }"/>
</bean>
Sorry for the mistake but its actually
acb ' def ' xyz
There are white spaces after abc and before xyz and I need these white spaces but not inside the quotes