package Ġcom . example . hel low eb flux ; Ċ Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġorg . springframework . web . reactive . function . server . Server Request Ċ import Ġorg . springframework . web . reactive . function . server . Server Response Ċ import Ġorg . springframework . web . reactive . function . server . Server Response . ok Ċ import Ġorg . springframework . web . reactive . function . server . body Ċ import Ġreactor . core . publisher . Mono Ċ Ċ @ Component Ċ open Ġclass ĠHello Handler Ġ{ ĊĊĠ Ġfun Ġhello ( req : ĠServer Request ): ĠMono < Server Response > Ġ{ ĊĠĠĠ Ġreturn Ġok (). body ( Mono . just (" hello Ġworld ")) ĊĠ Ġ} ĊĊĠ Ġfun Ġhello Json ( req : ĠServer Request ): ĠMono < Server Response > Ġ{ ĊĠĠĠ Ġval Ġbool Ġ= Ġreq . path Variable (" boot "). to Boolean () ĊĠĠĠ Ġreturn Ġok () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. contentType ( MediaType . APPLICATION _ JSON _ UTF 8 ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. body ( Mono . just ( Response ( bool ))) ĊĠ Ġ} Ċ } Ċ