您要Jackson解析一个
StudentList。告诉它解析一个
List(学生)。由于
List是通用的,因此通常会使用TypeReference
List<Student> participantJsonList = mapper.readValue(jsonString, new TypeReference<List<Student>>(){});
您要Jackson解析一个
StudentList。告诉它解析一个
List(学生)。由于
List是通用的,因此通常会使用TypeReference
List<Student> participantJsonList = mapper.readValue(jsonString, new TypeReference<List<Student>>(){});