mirror of
https://gitee.com/dromara/hutool.git
synced 2025-11-24 08:33:22 +08:00
@@ -1,6 +1,7 @@
|
||||
package cn.hutool.json;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import cn.hutool.core.bean.RecordUtil;
|
||||
import cn.hutool.core.collection.ArrayIter;
|
||||
import cn.hutool.core.convert.Convert;
|
||||
import cn.hutool.core.io.IoUtil;
|
||||
@@ -112,6 +113,8 @@ public class ObjectMapper {
|
||||
// 普通Bean
|
||||
// TODO 过滤器对Bean无效,需补充。
|
||||
mapFromBean(source, jsonObject);
|
||||
} else if (RecordUtil.isRecord(source.getClass())) {
|
||||
mapFromBean(source, jsonObject);
|
||||
}
|
||||
|
||||
// 跳过空对象
|
||||
|
||||
Reference in New Issue
Block a user