I know that Spring 3.0 and up has EL, but in this case the project is using Spring 2.5 , example:
<bean id="dir" class="java.lang.String">
<constructor-arg value="c:/work/"
</bean>
<bean id="file" class="java.lang.String">
<constructor-arg value="file.properties" />
</bean>
<bean id="path" class="java.lang.String">
<constructor-arg value=**dir + file**/>
</bean>
Does this work?
Notice the usage of
String.concat(java.lang.String)method asfactory-method.But XML isn’t really the best place for stuff like this, what about Java
@Configuration?