mirror of https://github.com/apache/archiva.git
fix String transformation of 2.0 -> 2 was not correct for artifacts versions
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293715 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0519a2f99a
commit
773d2784a5
|
@ -38,10 +38,19 @@
|
|||
<context:annotation-config/>
|
||||
<context:component-scan
|
||||
base-package="org.apache.archiva.rest.services"/>
|
||||
<!-- convertTypesToStrings -->
|
||||
|
||||
<bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.JSONProvider">
|
||||
<!-- without that String 2.0 are transformed to 2 which is not correct for versions -->
|
||||
<property name="convertTypesToStrings" value="true"/>
|
||||
<!--property name="serializeAsArray" value="true"/-->
|
||||
|
||||
</bean>
|
||||
|
||||
<jaxrs:server id="archivaServices" address="/archivaServices">
|
||||
|
||||
<jaxrs:providers>
|
||||
<ref bean="jsonProvider"/>
|
||||
<!--
|
||||
<bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider"/>
|
||||
-->
|
||||
|
|
Loading…
Reference in New Issue