public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
RestTemplateMessageConverterUtil.installMessageConverters(converters);
for (HttpMessageConverter<?> httpMessageConverter : converters) {
if (httpMessageConverter instanceof MappingJackson2HttpMessageConverter) {
final MappingJackson2HttpMessageConverter converter = (MappingJackson2HttpMessageConverter) httpMessageConverter;
final ObjectMapper objectMapper = converter.getObjectMapper();
objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
objectMapper.setDateFormat(new ISO8601DateFormatWithMilliSeconds());
objectMapper.addMixInAnnotations(StepExecution.class, StepExecutionJacksonMixIn.class);
objectMapper.addMixInAnnotations(ExecutionContext.class, ExecutionContextJacksonMixIn.class);
}