Can I use StreamingResponseBody with a generic ResponseEntity
Summary The issue arises when attempting to use generic ResponseEntity<?> with StreamingResponseBody in a Spring MVC application. The goal is to return either a stream or a synchronous value, but using ResponseEntity<?> with StreamingResponseBody results in an HttpMessageNotWritableException. Root Cause The root cause of the issue is that ResponseEntity<?> does not know how to handle … Read more