Add info on mixing annotations to docs. Fixes gh-983.

This commit is contained in:
Olga Maciaszek-Sharma
2024-11-12 17:58:12 +01:00
parent 84e3530f47
commit 7c177438b3

View File

@@ -353,7 +353,7 @@ NOTE: `PROD-SVC` is the name of the service the Clients will be making requests
NOTE: The Feign `Contract` object defines what annotations and values are valid on interfaces. The
autowired `Contract` bean provides supports for SpringMVC annotations, instead of
the default Feign native annotations.
the default Feign native annotations. It is not recommended to mix the Spring MVC annotations and the native Feign annotations together.
You can also use the `Builder`to configure FeignClient not to inherit beans from the parent context.
You can do this by overriding calling `inheritParentContext(false)` on the `Builder`.