It seems like a simple question, but I can't find the answer.
In spring-boot, I have a Controller method which returns json:
@GetMapping
public ResponseEntity<Stream<MyObject>> get() {
return ResponseEntity
.ok()
.contentType(MEDIA_JSON)
.body(service.stream());
}
Is this properly streamed to the user (in chunks) or is the whole stream loaded into the memory before returning to the user?

