I have a problem during sending a HTTP GET request to my web server. Here is a snippet of code which is responsible for this resource:
@GetMapping(\"/events\
ServerResponse
is the HTTP response type used by Spring WebFlux.fn, the functional variant of the reactive web framework. You're not supposed to use it within an annotated controller.
In this case, you should return a ResponseEntity
instead (or any other supported return type, see reference documentation).