public static void main(String[] args) {
List list=new ArrayList();
//将接收的集合转换为实体类
ObjectMapper mapper = new ObjectMapper();
//Forms为实体对象
Forms forms = mapper.convertValue(list, Forms.class);
}
将接收的集合转换为实体类
于 2022-08-22 10:00:43 首次发布