-
Notifications
You must be signed in to change notification settings - Fork 824
Open
Labels
Description
There are two services, service A and service B.
in Service B, its context path is member and there is a controller defined as follow
@Contoller
public MemberController {
@PostMapping
public Member saveMember(Member member){
}
}and in Service A, a Feign client is defined to call this endpoint
@FeignClient(name = "service-b", path = "member")
public MemberFeignClient {
@PostMapping
public Member saveMember(Member member);
}While executing the code, feign client print log with location calling to http://service-b/member/, which a trailing slash was added. I tried to add config from code or autoconfig to remove it but it was still added.
As Spring is no longer support trailing slash, it threw error as the path not found.
Version:
Spring Cloud OpenFeign: 5.0.1
Reactions are currently unavailable