Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util.xsd
- http://cxf.apache.org/jaxrs
- http://cxf.apache.org/schemas/jaxrs.xsd
- http://cxf.apache.org/core
- http://cxf.apache.org/schemas/core.xsd">
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
- <bean id="serviceBean" class="de.pentos.cxf.demo.service.Endpoint"></bean>
- <jaxrs:server id="server01" address="/">
- <jaxrs:serviceBeans>
- <ref bean="serviceBean" />
- </jaxrs:serviceBeans>
- <jaxrs:providers>
- <ref bean="jsonProvider" />
- </jaxrs:providers>
- </jaxrs:server>
- <util:list id="jsonKeys">
- <value>attributes</value>
- </util:list>
- <bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
- <property name="serializeAsArray" value="true" />
- <property name="arrayKeys" ref="jsonKeys" />
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement