package Ġpin board Ċ Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Missing Bean Ċ import Ġorg . springframework . boot . context . properties . Enable Configuration Properties Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . client . Rest Template Ċ Ċ /** Ċ Ġ* Ġ@ author Ġ< a Ġhref =" mailto : j osh @ j osh long . com "> J osh ĠLong </ a > Ċ Ġ*/ Ċ @ Configuration Ċ @ Enable Configuration Properties ( Pin board Properties :: class ) Ċ class ĠPin board Configuration Ġ{ ĊĊ ĉ @ Bean Ċ ĉ @ Conditional On Missing Bean Ċ ĉ fun Ġpin board Client ( properties : ĠPin board Properties , Ġrt : ĠRest Template ) Ġ= ĠPin board Client ( properties . token !! , Ġrt ) ĊĊ ĉ @ Bean Ċ ĉ @ Conditional On Missing Bean Ċ ĉ fun Ġrest Template () Ġ= ĠRest Template () Ċ Ċ }