Code:class SomeoneElsesAPI { void setDirectory(File dir){...} void setDirectory(String dir){...} }I have a case similar to the above example, Spring is throwing an IllegalStateException indicating that it can't convert String to File.Code:<bean id="someoneElsesAPI" class="com.someone.SomeoneElsesAPI"> <property name="directory"> <value type="java.lang.String">/etc</value> </property> </bean>
How do I tell spring which of the overloaded methods to use? I thought spring would figure it out when I specified it in the <value type="..."> parameter which relieves any ambiguity.


Reply With Quote