package Ġcom . an th fu . kafka . stock . producer Ċ Ċ import Ġorg . springframework . boot . CommandLine Runner Ċ import Ġorg . springframework . boot . autoconfigure . SpringBoot Application Ċ import Ġorg . springframework . boot . run Application Ċ Ċ @ SpringBoot Application Ċ class ĠStock Producer App ( private Ġval Ġproducer : ĠStock Producer ) Ġ: ĠCommandLine Runner Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġrun ( var arg Ġargs : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġrepeat ( 1 0 0 0 ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġproducer . send ( it . toString ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġrun Application < Stock Producer App >(* args ) Ċ } Ċ