如果测试类Student的属性set方法参数是int,application.xml中有constructor-arg标签 ,就会加载失败。原因是asm中无法识别出int类型,这个咋解决呢
<beans>
<bean id="student" class="com.tianyou.fourth.fifth.test.Student">
<constructor-arg name="name" value="'tian'.concat('you1')"/>
<property name="studentSubjectScore" value="95_100_90"/>
</bean>
</beans>
public void setAge(int age) {
this.age = age;
}
