Block clas-level request mapping on Feign clients.

This commit is contained in:
Olga MaciaszekSharma
2021-10-11 15:14:46 +02:00
parent 1275875ddb
commit d6783a6f1e
4 changed files with 40 additions and 116 deletions

View File

@@ -523,10 +523,7 @@ public interface UserClient extends UserService {
}
----
NOTE: It is generally not advisable to share an interface between a
server and a client. It introduces tight coupling, and also actually
doesn't work with Spring MVC in its current form (method parameter
mapping is not inherited).
WARNING: `@FeignClient` interfaces should not be shared between server and client and annotating `@FeignClient` interfaces with `@RequestMapping` on class level is no longer supported.
=== Feign request/response compression