package Ġcom . example . spr in boot sample . configurations Ċ Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . module . kotlin . register Kotlin Module Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . context . annotation . Primary Ċ Ċ @ Configuration Ċ class ĠObjectMapper Configuration Ġ{ ĊĊĠĠĠ Ġ@ Bean Ġ@ Primary ĊĠĠĠ Ġfun ĠobjectMapper () Ġ= ĠObjectMapper (). apply Ġ{ ĊĠĠĠĠĠĠĠ Ġregister Kotlin Module () ĊĠĠĠ Ġ} Ċ }