@SuppressWarnings("unchecked")
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
Map map = null;
try {
map = BeanUtils.describe(this);
} catch (Exception e) {
buf.append("BeanUtils describe bean occur exception:" + e.getMessage());
return buf.toString();
}
return map.toString();
}
方便调试开发的entity的toString方法
最新推荐文章于 2021-03-04 12:42:12 发布