Describe the bug
The problem is with @SpringQueryMap because it uses PageableSpringQueryMapEncoder
which extends BeanQueryMapEncoder
, limiting it to just these two encoders.
In feign.QueryMap
, you can define mapEncoder
as either BEAN or FIELD.
Solution: Defines the Bean:
@Bean
public QueryMapEncoder feignQueryMapEncoderPageable() {
return new FieldQueryMapEncoder();
}
However, it is incompatible with Pageable throwing exception:
Request processing failed: java.lang.IllegalStateException: Duplicate key serialVersionUID (attempted merging values -4541509938956089562 and 1232825578694716871)] with root cause