import com.alibaba.fastjson.JSON; JSON.parseObject(JSON.toJSONString(obj1), obj2.class)
import com.fasterxml.jackson.databind.ObjectMapper; objectMapper.convertValue(obj1, obj2.class);
两个工具类
2021-10-25 14:04:54
import com.alibaba.fastjson.JSON; JSON.parseObject(JSON.toJSONString(obj1), obj2.class)
import com.fasterxml.jackson.databind.ObjectMapper; objectMapper.convertValue(obj1, obj2.class);
两个工具类