java - Spring Cloud Feign Client duplicate list values -


i have interface mapping rest client using spring cloud feign.

@feignclient(url = "http://localhost:8080") public interface restclient {      @requestmapping(value = "?ids={ids}", method = get)     list<posicao> get(@requestparam(value = "ids") list ids); } 

i have list in parameters, calling client have request:

restclient.get(arrays.aslist(1, 2)); 

http://localhost:8080/ids=1,2,1,2

it's duplicating list values!

i tried using array, integer , string generic list, no success.

remove ?ids={ids} @requestmapping fixes problem. path parameters need go there.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -