I have a spring boot application. trying to send xml payload through postman to a Post request. I get the following exception
java.lang.IllegalS
Could you explain what are you trying to achieve in your Controller?
This error probably comes from the fact that you're calling subscribe
in your controller method, effectively consuming the incoming Flux
and returning at the same time.
As a general rule, you shouldn't subscribe to Publisher
s within your Controllers.