Spring WebFlux - ServerResponse Jackson Serializer problems

后端 未结 1 1198
轻奢々
轻奢々 2021-01-11 14:18

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\         


        
相关标签:
1条回答
  • 2021-01-11 14:40

    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).

    0 讨论(0)
提交回复
热议问题