Changing

data.template().uri(pathValue, true);

to

if (!pathValue.equals("/")) {
    data.template().uri(pathValue, true);
}

Breaks as paths with "/" are now "". Please back out this change. If ir is intentional to break other code, please provide this with at feature toggle in form of a configuration parameter.

As a concrete example a controller with a URL defined as "/?key=value", Feign will send "?key=value", which is wrong.

Comment From: OlgaMaciaszek

Fixed with: https://github.com/spring-cloud/spring-cloud-openfeign/commit/14929cbfee02580a8b0684bb665b7b335f957aa6

Comment From: OlgaMaciaszek

Thanks for reporting this @nikolajbrinch