今天爱分享给大家带来Error attempting to get column ‘XXX’ from result set【解决方法】,希望能够帮助到大家。
和lombok有关的,我使用了lombok继承的方式,结果当我mapper返回映摄的时候,子类中的属性无法找到,提示Error attempting to get column ‘XXX’ from result set,子类如下
@Data
public class DeptEmpTree extends ElTree {
private String nodeType;
@Builder
public DeptEmpTree(String id, String pid, String label, Boolean isChecked, String nodeType) {
super(id, pid, label, isChecked, null);
this.nodeType = nodeType;
}
}
通过查阅资料发现,是构造方法的问题,于是添加了 @NoArgsConstructor 搞定
原文链接:http://blog.itblood.com/4859.html,转载请注明出处。

![调教赫敏2-无辜的女巫v0.12 官中版[PC+安卓/1.98G/更新]Innocent Witches [v0.12 Alpha] [调教SLG/汉化/动态]](/wp-content/uploads/replace/2025/07/19/8ccebc0ab815d0cc456754aea4d5b2ad.webp)