pojo定义如下:
private long gId;
public long getgId() {
return gId;
}
public void setgId(long gId) {
this.gId = gId;
}
抛出如下异常:
java.lang.NoSuchMethodException: Fail to find getter for [com.pathfinder.TaskActivity]->[gId]
是属性名称不规范导致的吗?
pojo定义如下:
private long gId;
public long getgId() {
return gId;
}
public void setgId(long gId) {
this.gId = gId;
}
抛出如下异常:
java.lang.NoSuchMethodException: Fail to find getter for [com.pathfinder.TaskActivity]->[gId]
是属性名称不规范导致的吗?
@qq_fa84c3f7 不规范,而且一般不会这样命名属性
来自炫酷的 NutzCN