package Ġcom . example Ċ Ċ import Ġorg . springframework . boot . autoconfigure . SpringBoot Application Ċ import Ġorg . springframework . boot . run Application Ċ import Ġorg . springframework . data . mongodb . core . mapping . Document Ċ import Ġorg . springframework . data . repository . reactive . Reactive Crud Repository Ċ import Ġorg . springframework . stereotype . Repository Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġreactor . core . publisher . Mono Ċ import Ġjava . math . BigDecimal Ċ import Ġjava . time . LocalDate Ċ Ċ @ SpringBoot Application Ċ class ĠKotlin Web Flux Mongo Test Container Application Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ Ċ ĉ run Application < Kotlin Web Flux Mongo Test Container Application >(* args ) Ċ } Ċ Ċ @ Document Ċ data Ġclass ĠLo an Detail ( val Ġ_ id : ĠString , ĊĉĉĉĉĉĠ Ġvar Ġloan Amount : ĠBigDecimal , ĊĉĉĉĉĉĠ Ġvar Ġloan Comm enced Date : ĠLocalDate , ĊĉĉĉĉĉĠ Ġvar Ġinterest Rate : ĠFloat , ĊĉĉĉĉĉĠ Ġvar ĠnumberOf E mi : ĠInt , ĊĉĉĉĉĉĠ Ġvar Ġem i Amount : ĠBigDecimal ) ĊĊ Ċ @ Repository Ċ interface ĠLo an Detail Repo Ġ: ĠReactive Crud Repository < Loan Detail , ĠString > ĊĊ Ċ interface ĠLo an Detail Service Ġ{ Ċ ĉ fun Ġsave ( loan Detail : ĠLo an Detail ): ĠMono < Loan Detail > Ċ } Ċ Ċ @ Service Ċ class ĠLo an Detail ServiceImpl ( private Ġval Ġloan Detail Repo : Ġ ĠLo an Detail Repo ) Ġ: ĠLo an Detail Service Ġ{ ĊĊ ĉ override Ġfun Ġsave ( loan Detail : ĠLo an Detail ): ĠMono < Loan Detail > Ġ{ Ċĉ ĉ return Ġloan Detail Repo . save ( loan Detail ) Ċ ĉ } Ċ } Ċ