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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -