package Ġcom . last a . api . sample . controller Ċ Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ @ RequestMapping ( path Ġ= Ġ[" hello "]) Ċ class ĠHello Controller Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( path Ġ= Ġ[" world "], Ġproduces Ġ= Ġ[ MediaType . TEXT _ PLAIN _ VALUE ]) ĊĠĠĠ Ġfun Ġhello World (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" hello Ġworld " ĊĠĠĠ Ġ} Ċ } Ċ