你的MixedBean中有两个属性 numb01和numb02 但是你只有get方法没有set方法,所以报错了 public int getNumb01() { return numb01; } /** * @return the numb02 */ public int getNumb02() { return numb02; } 这就是错误原因Bean property 'numb01' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
MixedBean
numb01
用eclipse自动生成!
public int getNumb01() {
return numb01;
}
/**
* @return the numb02
*/
public int getNumb02() {
return numb02;
}
这就是错误原因Bean property 'numb01' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?