Ответ такой:
Код: Выделить всё
public class MyResponse {
private List data;
private ResponseHeader header;
// getters and setters
}
Код: Выделить всё
public class MyData {
private MyObject object;
private String status;
private Integer id;
private List events = new ArrayList();
private Date creationDate;
...
}
Код: Выделить всё
public class MyEvent {
private String name;
private Long id;
private Date date;
...
}
Код: Выделить всё
{
"data": [
{
"creationDate": "2026-03-30T29:85:42.000Z",
"object": {
...
},
"id": 1,
"status": "STATUS_CREATED"
}
],
"header": {
...
}
}
Код: Выделить всё
@Configuration
// Permits to have a specific JSON format for Page returned to caller (even if PageImpl changes)
@EnableSpringDataWebSupport(pageSerializationMode = EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO)
public class JacksonConfiguration {
private static final Logger LOGGER = LoggerFactory.getLogger(JacksonConfiguration.class);
@PostConstruct
private void configurationInitialized() {
LOGGER.info("Configuration JacksonConfiguration being initialized");
}
}
Как это исправить?>