I have a class with a property int ,but in the configuration file I have set the property as follow
I got exceptionCode:class A{ int k; } <bean id ="j" class ="A"> <property name="k" value="Java.sql.Types.Numeric"> </bean>
I have a class with a property int ,but in the configuration file I have set the property as follow
I got exceptionCode:class A{ int k; } <bean id ="j" class ="A"> <property name="k" value="Java.sql.Types.Numeric"> </bean>
Hi,
The problem is that you are trying to set a property with the value of a static property of other class. In this case you must use the following:
RegardsCode:<bean id ="j" class ="A"> <property name="k"> <util:constant static-field= "java.sql.Types.NUMERIC"/> </property> </bean>