could not find a getter for ... in class ... 异常的解决方案
could not find a getter for cId in class xxx 异常的解决方案
这里提一下:get/set是不是不允许方法名中有连续两个大写字母
public String getODPType(){
return this.oDPType;
}
public void setODPType(String oDPType){
this.oDPType = oDPType;
}
这样写它就会报错,报找不到getter for oDPType的错误,但下面这样写就可以了
public String odpType;
public String getOdpType(){
return this.odpType;
}
public void setOdpType(String odpType){
this.odpType = odpType;
}