Class ObjectMapperConfig

java.lang.Object
com.example.blogs.app.config.ObjectMapperConfig

@Configuration public class ObjectMapperConfig extends Object
Configures the Jackson ObjectMapper for JSON serialization and deserialization. Customizes LocalDateTime formatting and disables timestamp-based date serialization.
  • Constructor Details

    • ObjectMapperConfig

      public ObjectMapperConfig()
  • Method Details

    • objectMapper

      @Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      Creates a configured ObjectMapper with custom date/time formatting.
      Returns:
      configured ObjectMapper instance with JavaTimeModule and custom settings