Skip to content
Go back

FeignClient中Pageable被当作body传输

Edit page

FeignClient中Pageable被当作body传输

调用FeignClient进行GET且分页请求时发现Pageable被生成为BODY

原因

自己定义的SpringEncoder有问题, 没有用PageableSpringEncoder, 导致SpringEncoder认为其是RequestBody并将其生成为body

解决方案

采用框架默认的Encoder

备注


Edit page
Share this post on:

Previous Post
protobuf编译报错找不到proto文件
Next Post
研究在openldap中实现posix用户的锁定