Class LocalDateSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
tech.corefinance.common.converter.json.TemporalAccessorJsonSerializer<LocalDate>
tech.corefinance.common.converter.json.LocalDateSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, io.swagger.v3.core.converter.ModelConverter, org.springframework.beans.factory.InitializingBean

@Component @ConditionalOnProperty(prefix="spring.jackson-custom.serialization", name="local-date-format") public class LocalDateSerializer extends TemporalAccessorJsonSerializer<LocalDate>
  • Constructor Details

    • LocalDateSerializer

      public LocalDateSerializer(@Value("${spring.jackson-custom.serialization.local-date-format}") String localDateFormat)
  • Method Details

    • handledType

      public Class<LocalDate> handledType()
      Overrides:
      handledType in class com.fasterxml.jackson.databind.JsonSerializer<LocalDate>