Package com.example.blogs.app.config
Class ObjectMapperConfig
java.lang.Object
com.example.blogs.app.config.ObjectMapperConfig
Configures the Jackson ObjectMapper for JSON serialization and deserialization.
Customizes LocalDateTime formatting and disables timestamp-based date serialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.ObjectMapperCreates a configured ObjectMapper with custom date/time formatting.
-
Constructor Details
-
ObjectMapperConfig
public ObjectMapperConfig()
-
-
Method Details
-
objectMapper
Creates a configured ObjectMapper with custom date/time formatting.- Returns:
- configured ObjectMapper instance with JavaTimeModule and custom settings
-