I'm getting the following message with the code below:-
org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'field1' defined in file [c:\config\thebean.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: Did you specify the correct bean references as generic constructor arguments
<property name="fields">
<map>
<entry key="CITY">
<bean id="field1" class="com.ourco.DBField">
<constructor-arg type="String" index="0">
<value>CITY</value>
</constructor-arg>
<constructor-arg type="char" index="1">
<value>L</value>
</constructor-arg>
<constructor-arg type="int" index="2">
<value>7 </value>
</constructor-arg>
<constructor-arg type="int" index="3">
<value>0</value>
</constructor-arg>
</bean>
</entry>
</map>
</property>


Reply With Quote