package <%=packageName%>.config;

import com.fasterxml.jackson.datatype.jsr310.ser.ZonedDateTimeSerializer;
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;

import java.time.ZoneId;
import java.time.format.DateTimeFormatter;

@Configuration
public class JacksonConfiguration {

    public static final DateTimeFormatter ISO_FIXED_FORMAT =
        DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'").withZone(ZoneId.of("Z"));

    @Bean
    public Jackson2ObjectMapperBuilderCustomizer jacksonCustomizer() {
        return new Jackson2ObjectMapperBuilderCustomizer() {
            @Override
            public void customize(Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder) {
                jackson2ObjectMapperBuilder.serializers(new ZonedDateTimeSerializer(ISO_FIXED_FORMAT));
            }
        };
    }

}

@@ -310,84 +310,8 @@
 ion;
-%0Aimport org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
 %0A%0Aim
@@ -685,184 +685,38 @@
 urn 
-new Jackson2ObjectMapperBuilderCustomizer() %7B%0A            @Override%0A            public void customize(Jackson2ObjectMapperBuilder jackson2ObjectMapperBuilder) %7B%0A               
+jackson2ObjectMapperBuilder -%3E
  jac
@@ -804,33 +804,8 @@
 ));%0A
-            %7D%0A        %7D;%0A
     

make anonymous inner class a lambda