package Ġpar k and rest . security . web . config Ċ Ċ import Ġcom . fasterxml . jackson . databind . Deserialization Feature Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . databind . Serialization Feature Ċ import Ġcom . fasterxml . jackson . datatype . js r 3 1 0 . Java Time Module Ċ import Ġcom . fasterxml . jackson . module . kotlin . Kotlin Module Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . http . converter . Http Message Converter Ċ import Ġorg . springframework . http . converter . json . Mapping Jack son 2 Http Message Converter Ċ import Ġorg . springframework . web . servlet . config . annotation . Cors Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configuration Support Ċ import Ġjava . util .* ĊĊ Ċ @ Configuration Ċ class ĠWeb Configuration Ġ: ĠWeb Mvc Configuration Support () Ġ{ ĊĊĠĠĠ Ġpublic Ġoverride Ġfun Ġconfigure Message Converters ( converters : ĠMutable List < Http Message Converter <* >>) Ġ{ ĊĠĠĠĠĠĠĠ Ġconverter s . add ( jackson 2 Converter ()) ĊĠĠĠĠĠĠĠ Ġadd Default Http Message Converters ( converters ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġj ack son 2 Converter (): ĠMapping Jack son 2 Http Message Converter Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġconverter Ġ= ĠMapping Jack son 2 Http Message Converter () ĊĠĠĠĠĠĠĠ Ġconverter . object Mapper Ġ= ĠobjectMapper () ĊĠĠĠĠĠĠĠ Ġreturn Ġconverter ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun ĠobjectMapper (): ĠObjectMapper Ġ{ ĊĠĠĠĠĠĠĠ Ġval ĠobjectMapper Ġ= ĠObjectMapper () ĊĠĠĠĠĠĠĠ ĠobjectMapper . register Module ( Java Time Module ()) ĊĠĠĠĠĠĠĠ ĠobjectMapper . register Module ( Kotlin Module ()) ĊĠĠĠĠĠĠĠ ĠobjectMapper . set TimeZone ( TimeZone . getTime Zone (" GMT + 1 : 0 0 ")) ĊĠĠĠĠĠĠĠ ĠobjectMapper . configure ( Deserialization Feature . FAIL _ ON _ UNKNOWN _ PROPERTIES , Ġfalse ) ĊĠĠĠĠĠĠĠ ĠobjectMapper . configure ( Serialization Feature . WRITE _ DAT ES _ AS _ TIMESTAMP S , Ġfalse ) ĊĠĠĠĠĠĠĠ Ġreturn ĠobjectMapper ĊĠĠĠ Ġ} Ċ Ċ } ĊĊ