Fixing date format
This commit is contained in:
parent
742cb1c7e6
commit
54707da343
|
@ -54,6 +54,7 @@ public class JacksonJsonConfigurator
|
|||
objectMapper.setDateFormat( new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss.SSSZ" ) );
|
||||
|
||||
xmlMapper.disable( DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES );
|
||||
xmlMapper.setAnnotationIntrospector( new JaxbAnnotationIntrospector( xmlMapper.getTypeFactory( ) ) );
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,21 +48,10 @@
|
|||
</bean>
|
||||
|
||||
<bean id="redbackJacksonJsonMapper" class="com.fasterxml.jackson.databind.ObjectMapper" >
|
||||
<property name="annotationIntrospector" ref="jacksonAnnotationIntrospector"/>
|
||||
<property name="dateFormat">
|
||||
<bean class="java.text.SimpleDateFormat">
|
||||
<constructor-arg type="java.lang.String" value="yyyyMMdd'T'HHmmss.SSSZ"/>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="redbackJacksonXMLMapper" class="com.fasterxml.jackson.dataformat.xml.XmlMapper" >
|
||||
<property name="annotationIntrospector" ref="jacksonAnnotationIntrospector"/>
|
||||
</bean>
|
||||
|
||||
<bean id="jacksonAnnotationIntrospector" class="com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector" />
|
||||
|
||||
|
||||
|
||||
<jaxrs:server name="redbackServices" address="/redbackServices">
|
||||
|
||||
<jaxrs:serviceBeans>
|
||||
|
|
Loading…
Reference in New Issue