package Ġcom . l sd consult ing . exception handling . client . config Ċ Ċ import Ġcom . l sd consult ing . exception handling . api . mapper . ObjectMapper Builder . object Mapper Ċ import Ġfe ign . Retry er Ċ import Ġfe ign . codec . Decoder Ċ import Ġfe ign . codec . Error Decoder Ċ import Ġorg . springframework . beans . factory . ObjectFactory Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . autoconfigure . http . Http Message Converters Ċ import Ġorg . springframework . cloud . open fe ign . support . Response Entity Decoder Ċ import Ġorg . springframework . cloud . open fe ign . support . Spring Decoder Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . http . converter . json . Mapping Jack son 2 Http Message Converter Ċ Ċ class ĠClient Configuration Ġ{ ĊĠĠĠ Ġ@ Value ("\ ${ fe ign . retry . period : 5 0 0 }") ĊĠĠĠ Ġprivate Ġval Ġretry Initial Period : ĠLong Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Value ("\ ${ fe ign . retry . max Period : 1 0 0 0 }") ĊĠĠĠ Ġprivate Ġval Ġretry Max Period : ĠLong Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Value ("\ ${ fe ign . retry . max Attempts : 5 }") ĊĠĠĠ Ġprivate Ġval Ġretry Max Attempts Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġerror Decoder (): ĠError Decoder Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠClient Error Decoder () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġfe ign Decoder (): ĠDecoder Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġj ack son Converter Ġ= ĠMapping Jack son 2 Http Message Converter ( object Mapper ) ĊĠĠĠĠĠĠĠ Ġval Ġobject Factory Ġ= ĠObject Factory Ġ{ ĠHttp Message Converters ( jackson Converter ) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity Decoder ( Spring Decoder ( object Factory )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġfe ign Retry er (): ĠRetry er Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠRetry er . Default ( retry Initial Period , Ġretry Max Period , Ġretry Max Attempts ) ĊĠĠĠ Ġ} Ċ } Ċ