package Ġio . z ee be . z ee qs Ċ Ċ import Ġio . z ee be . z ee qs . importer . hazelcast . H azelcast Importer Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . boot . autoconfigure . SpringBoot Application Ċ import Ġorg . springframework . boot . context . properties . Enable Configuration Properties Ċ import Ġorg . springframework . boot . run Application Ċ import Ġorg . springframework . cache . annotation . Enable Caching Ċ import Ġjava . time . Duration Ċ import Ġjavax . annotation . Post Construct Ċ Ċ @ SpringBoot Application Ċ @ Enable Caching Ċ @ Enable Configuration Properties ( H azelcast Properties :: class ) Ċ class ĠZ ee ql Application ( ĊĠĠĠĠĠĠĠ Ġval Ġh azelcast Properties : ĠH azelcast Properties , ĊĠĠĠĠĠĠĠ Ġval Ġh azelcast Importer : ĠH azelcast Importer Ċ ) Ġ{ ĊĠĠĠ Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Z ee ql Application :: class . java ) ĊĊĠĠĠ Ġ@ Post Construct ĊĠĠĠ Ġfun Ġinit () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġconnection Ġ= Ġh azelcast Properties . connection ĊĠĠĠĠĠĠĠ Ġval Ġconnection Timeout Ġ= ĠDuration . parse ( hazelcast Properties . connection Timeout ) ĊĊĠĠĠĠĠĠĠ Ġlogger . info (" connect Ġto ĠH azelcast : Ġ'$ connection '") ĊĠĠĠĠĠĠĠ Ġh azelcast Importer . start ( connection , Ġconnection Timeout ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġrun Application < Z ee ql Application >(* args ) Ċ } Ċ