package Ġdev . y amil . cor onav irus api Ċ Ċ import Ġorg . springframework . boot . autoconfigure . SpringBoot Application Ċ import Ġorg . springframework . boot . builder . Spring Application Builder Ċ import Ġorg . springframework . boot . run Application Ċ import Ġorg . springframework . boot . web . client . Rest Template Builder Ċ import Ġorg . springframework . boot . web . servlet . support . SpringBoot Servlet Initializer Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . web . client . Rest Template Ċ import Ġjava . time . Duration . of Seconds ĊĊ Ċ @ SpringBoot Application Ċ class ĠCor ona V irus Api Application Ġ: ĠSpring Boot Servlet Initializer () Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġprovides Rest Template (): ĠRest Template Ġ= ĠRest Template Builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Connect Timeout ( of Seconds ( 1 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. set Read Timeout ( of Seconds ( 1 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġoverride Ġfun Ġconfigure ( application : ĠSpring Application Builder ): ĠSpring Application Builder ? Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication . sources ( Cor ona V irus Api Application :: class . java ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġrun Application < Cor ona V irus Api Application >(* args ) Ċ } ĊĊĊĊĊ