我正在使用webflux Mono (在Spring boot5中)来使用外部API。当API响应状态码为200时,我可以很好地获取数据,但当API返回错误时,我无法从API检索错误消息。Springwebclient错误处理程序始终将消息显示为
但是当我使用PostMan时,ClientResponse has erroneous status code: 500 InternalServer Error会返回这个状态码为500的JSON响应。:"Failed to add
Spring版本:2.4.2Java版本: 11Error has been observed at the following site(s):
|_ checkpoint ⇢ org.springframework.cloud.gateway.filter.WeightCalculatorWebFilter