当前位置: 首页 > 工具软件 > ReadXml > 使用案例 >

Aestate的ReadXml报错setattr(obj, properties, _data_item[field])

刘永望
2023-12-01

检查xml中resultMap的result标签,field和properties字段是不是写对了,有没有空格,空格是最烦的,有时候莫名其妙报错又找不出来

其次

 <result field="order_total" properties="order_total"/>

field是指使用sql查询时返回的结果上面的字段名字,properties才是POJO对象的字段名

 类似资料: