<bean id="FileWriter" class="com.sample.FileWriter">
<constructor-arg value="${path.to.output}"/>
<constructor-arg value="${filename}"/>
</bean>
I would like to pass in the file name with today's date from a property file using spring so that it is not hard coded in the class. Is this possible?
File name I'm looking to pass in F_IN_1243_MMDDYYYY.xml where MMDDYYYY is today's date?