가 나는 다음과 같은 오류오류 유형 java.io.File에 [모호한 생성자의 인자 타입]
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?
납니다
<bean id="fileBean" class="java.io.File">
<constructor-arg type="java.lang.String"
value="$prop{file.path.property}" />
</bean>
다음 스프링 빈 설정이 있습니다 한과 콩을 만들 때 단일 String 매개 변수로 java.io.File에 대한 하나의 생성자 만 있으므로이 이유가 모호한 것인지 잘 모르겠습니다. 어떤 도움을 주셔서 감사합니다.
같은 일이 있었는데 예외는 내가 편집 한 다른 xml 파일에있는 것으로 판명되었습니다. –