最近在实现gateway网关自动刷新功能碰到的一个坑,在使用RestTemplate调用refresh端点时,会调用WebFlux的方法org.springframework.web.reactive.result.method.annotation.AbstractMessageReaderArgumentResolver#readBody方法中,如果Content-Type是application/x-www-form-urlencoded类型,就会抛出异常:
关于WebFlux不支持application/x-www-form-urlencoded
最新推荐文章于 2023-10-31 11:44:51 发布