Spring Reactive xml payload exception java.lang.IllegalStateException: Failed to resolve argument 0 of type 'reactor.core.publisher.Mono'

前端 未结 3 1094
情深已故
情深已故 2021-01-28 23:19

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         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-29 00:03

    Not sure why but as I can see it uses Jaxb2XmlDecoder for decoding XML payload and decodeToMono method is not implemented there.

    To fix this you can use Flux type as a requestBody

提交回复
热议问题