@GetMapping(produces = {
MediaType.APPLICATION_JSON_VALUE,
MediaType.APPLICATION_NDJSON_VALUE
})
public Flux<Some> read() {
}
当我curl与--header 'Accept: application/x-ndjson'
外部数组消失了,但每个元素中的所有新行都没有消失。
{
"some": "thing"
}
{
"some": "other"
}
我怎样才能使它们尽可能单行?