Fixing Date format for JSON binding

This commit is contained in:
Martin Stockhammer 2020-07-07 22:53:43 +02:00
parent 87b089a695
commit 742cb1c7e6
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ public class JacksonJsonConfigurator
objectMapper.disable( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES );
objectMapper.setAnnotationIntrospector( new JaxbAnnotationIntrospector( objectMapper.getTypeFactory() ) );
objectMapper.registerModule( new JavaTimeModule( ) );
objectMapper.setDateFormat( new SimpleDateFormat( "yyyyMMdd'T'HHmmss.SSSZ" ) );
objectMapper.setDateFormat( new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ) );
xmlMapper.disable( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES );