for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
package com.hltech.judged.server.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
@Configuration
public class BeanFactory {
@Bean
ObjectMapper objectMapper(Jackson2ObjectMapperBuilder mapperBuilder) {
ObjectMapper objectMapper = mapperBuilder.build();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
return objectMapper;
}