一、对象转json
import static com.alibaba.fastjson.JSON.toJSONString;
System.out.println(toJSONString(act));
二、对象拷贝
BeanUtils.copyProperties(act,entity);
一、对象转json
import static com.alibaba.fastjson.JSON.toJSONString;
System.out.println(toJSONString(act));
二、对象拷贝
BeanUtils.copyProperties(act,entity);