Package org.springframework.xd.rest.domain.util

Examples of org.springframework.xd.rest.domain.util.ISO8601DateFormatWithMilliSeconds


          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);
          }
        }
View Full Code Here


    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(JobExecution.class, JobExecutionJacksonMixIn.class);
        objectMapper.addMixInAnnotations(JobParameters.class, JobParametersJacksonMixIn.class);
        objectMapper.addMixInAnnotations(JobParameter.class, JobParameterJacksonMixIn.class);
        objectMapper.addMixInAnnotations(JobInstance.class, JobInstanceJacksonMixIn.class);
View Full Code Here

TOP

Related Classes of org.springframework.xd.rest.domain.util.ISO8601DateFormatWithMilliSeconds

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.