ObjectMapper objectMapper = new ObjectMapper();

List<Cell>cells=new ArrayList();

//List转String
String str= objectMapper.writeValueAsString(cells);

//String转List
List<Cell> cellList = objectMapper.readValue(str, new TypeReference<List<Cell>>() {});

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2021-10-01
  • 2021-12-17
  • 2022-12-23
  • 2022-02-10
相关资源
相似解决方案