मैं निम्नलिखित वसंत सेम विन्यासत्रुटि प्रकार java.io.File [अस्पष्ट निर्माता तर्क प्रकारों]
<bean id="fileBean" class="java.io.File">
<constructor-arg type="java.lang.String"
value="$prop{file.path.property}" />
</bean>
मैं निम्न त्रुटि
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'fileBean' defined in class path resource [context.xml]:
Unsatisfied dependency expressed through constructor argument with index 0 of type
[java.net.URI]: Ambiguous constructor argument types - did you specify the correct
bean references as constructor arguments?
हो रही है है के साथ सेम बनाते समय एक एकल स्ट्रिंग पैरामीटर के साथ java.io.File के लिए केवल एक कन्स्ट्रक्टर इसलिए मुझे यकीन नहीं है कि यह संदिग्ध क्यों है। किसी भी मदद की सराहना की।
मेरे साथ भी हुआ, अपवाद एक और एक्सएमएल फ़ाइल में हो गया जो मैं संपादित कर रहा हूं –