<bean id="contributionAction" class="xxx.ContributionAction" scope="prototype">
<property name="zanSize">
<value>30</value>
</property>
<property name="contributionService" ref="contributionService"></property>
</bean>
ContributionAction中size的get,set方法都有,属性size的值始终都获取不到,而属性contributionService的值可以获取到,不知道为什么原因?请教各位了!
------解决方案--------------------
如果楼主属性名,set,get方法正确的话不会出现这种问题的,楼主重新编译部署下会不会是没编译过去
------解决方案--------------------
试试
<property name="zanSize"><value type="java.lang.String">30</value>
或者 将type改为 Integer
------解决方案--------------------
我也觉得是getter 和 setter的问题...你换成integer还是这样 还是觉得getter,setter问题要不然就是你的action路径写错了