package Ġgate ch . mobile . occup ancy . startup Ċ Ċ import Ġmu . K Logging Ċ import Ġorg . springframework . boot . Application Arguments Ċ import Ġorg . springframework . boot . Application Runner Ċ import Ġorg . springframework . core . Ordered Ċ import Ġorg . springframework . data . mongodb . core . convert . Mapping Mongo Converter Ċ import Ġorg . springframework . data . mongodb . core . convert . Mongo Type Mapper Ċ import Ġorg . springframework . stereotype . Component Ċ import Ġjavax . annotation . Priority Ċ Ċ @ Priority ( Ordered . HIG HE ST _ PREC ED ENCE ) Ċ @ Component Ċ class ĠMongo Initializer ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġconverter : ĠMapping Mongo Converter , ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġtype Mapper : ĠMongo Type Mapper Ċ ) Ġ: ĠApplication Runner Ċ { ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠK Logging () ĊĊĠĠĠ Ġoverride Ġfun Ġrun ( args : ĠApplication Arguments ?) ĊĠĠĠ Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . debug Ġ{ Ġ" Removing Ġtype Ġmapping Ġfrom ĠSpring ĠMongo ." Ġ} ĊĠĠĠĠĠĠĠ Ġconverter . type Mapper Ġ= Ġtype Mapper ĊĠĠĠ Ġ} Ċ } Ċ