Fixing Date format for JSON binding
This commit is contained in:
parent
87b089a695
commit
742cb1c7e6
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue