私は次の春の豆の構成を持っています
<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?
単一のStringパラメーターを持つjava.io.Fileのコンストラクターは1つしかないため、これがあいまいな理由はわかりません。助けていただければ幸いです。