add encoder, decoder and contract to feign properties, so we can override the default value with properties (#2687)

This commit is contained in:
Eko Kurniawan Khannedy
2018-02-21 02:31:03 +07:00
committed by Ryan Baxter
parent a082146715
commit 61bbca23ff
5 changed files with 114 additions and 7 deletions

View File

@@ -1131,6 +1131,9 @@ feign:
- com.example.FooRequestInterceptor
- com.example.BarRequestInterceptor
decode404: false
encoder: com.example.SimpleEncoder
decoder: com.example.SimpleDecoder
contract: com.example.SimpleContract
----
Default configurations can be specified in the `@EnableFeignClients` attribute `defaultConfiguration` in a similar manner as described above. The difference is that this configuration will apply to _all_ feign clients.