package com.arms.config; import feign.codec.Decoder; import org.springframework.beans.factory.ObjectFactory; import org.springframework.boot.autoconfigure.http.HttpMessageConverters; import org.springframework.cloud.openfeign.support.SpringDecoder; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class FeignResponseDecoderConfig { @Bean public Decoder feignDecoder() { ObjectFactory messageConverters = () -> { HttpMessageConverters converters = new HttpMessageConverters(); return converters; }; return new SpringDecoder(messageConverters); } }