我做了一个超级简单的例子,没有任何意义。
public static void main(String [] args) throws IntrospectionException {
BeanInfo info = Introspector.getBeanInfo(DemandBidType.class);
int breakpoint = 0;
}
这是我的课:
public class DemandBidType {
protected Boolean isDuplicateHour;
protected Boolean test;
public boolean isIsDuplicateHour() {
return isDuplicateHour;
}
public void setIsDuplicateHour(Boolean isDuplicateHour) {
this.isDuplicateHour = isDuplicateHour;
}
public Boolean getTest() {
return test;
}
public void setTest(Boolean test) {
this.test = test;
}
}
这是显示问题的屏幕截图;我关心的领域没有被认为具有写入方法。我添加了另一个字段“测试”并且该字段运行良好...在 Google 上与此相关的内容很少,而且旧 Java 版本已有多年历史。您可以在右下角看到我使用的是 1.7.51。