@bean(name = "mapperobject")
public objectmapper getobjectmapper() {
objectmapper om = new objectmapper();
javatimemodule javatimemodule = new javatimemodule();
javatimemodule.addserializer(localdatetime.class, new localdatetimeserializer(datetimeformatter.ofpattern("yyyy-mm-dd hh:mm:ss")));
javatimemodule.addserializer(localdate.class, new localdateserializer(datetimeformatter.ofpattern("yyyy-mm-dd")));
javatimemodule.addserializer(localtime.class, new localtimeserializer(datetimeformatter.ofpattern("hh:mm:ss")));
om.registermodule(javatimemodule);
return om;
}