Updated jackson config

This commit is contained in:
rajesh
2025-01-08 15:58:25 +05:30
parent bead5b0758
commit 8bb1ec0d02
2 changed files with 0 additions and 26 deletions

View File

@@ -1,20 +0,0 @@
package net.gepafin.tendermanagement.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class JacksonConfig {
@Bean
public ObjectMapper objectMapper() {
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JavaTimeModule());
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
return mapper;
}
}