webclient-starter β
Feign Json Configuration β
Feign client configuration for JSON support.
Usage:
kotlin@FeignClient( name = "my-api", url = "https://api.example.com", configuration = [FeignJsonConfiguration::class] ) interface MyJsonApiClient { @GetMapping("/endpoint") fun fetchData(): MyJsonResponse }This configuration creates a Feign Decoder that uses Jackson for JSON deserialization. It uses the ObjectMapper from the parent Spring context (with Kotlin module already configured).
The beans are scoped to the Feign client context (isolated per client).
Class: com.drinkit.webclient.feign.FeignJsonConfiguration
Methods (2)
feignDecoder()feignRetryer()
Feign Xml Configuration β
Feign client configuration for XML support.
Usage:
kotlin@FeignClient( name = "my-api", url = "https://api.example.com", configuration = [FeignXmlConfiguration::class] ) interface MyXmlApiClient { @GetMapping("/endpoint") fun fetchData(): MyXmlResponse }This configuration creates a Feign Decoder that uses Jackson for XML deserialization.
The beans are scoped to the Feign client context (isolated per client).
Class: com.drinkit.webclient.feign.FeignXmlConfiguration
Methods (2)
feignDecoder()feignRetryer()
Generated automatically from code annotations