cxf 相关问题
2013-06-28 09:54
239 查看
cxf不能将String的参数序列化的问题解决
问题:
View Code
REFERENCES:http://hdxiong.iteye.com/blog/1752036
http://stackoverflow.com/questions/10895982/apache-cxf-generates-number-instead-of-string
http://yufenfei.iteye.com/blog/1717098
问题:
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:cxf="http://cxf.apache.org/core" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd"> <bean id="loggingInInterceptor" class="org.apache.cxf.interceptor.LoggingInInterceptor" /> <bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor" /> <util:list id="jsonKeys"> <value>app</value> <value>comment</value> </util:list> <util:list id="jsonTypes"> <value>application/json</value> <value>application/jettison</value> </util:list> <bean id="jsonProvider" class="org.apache.cxf.jaxrs.provider.json.JSONProvider"> <!-- <property name="dropRootElement" value="true" /> <property name="dropCollectionWrapperElement" value="true" /> <property name="supportUnwrapped" value="true" /> <property name="serializeAsArray" value="true" /> <property name="attributesToElements" value="true"/> --> <property name="serializeAsArray" value="true" /> <property name="arrayKeys" ref="jsonKeys" /> <property name="produceMediaTypes" ref="jsonTypes" /> <property name="consumeMediaTypes" ref="jsonTypes" /> <property name="ignoreNamespaces" value="true" /> <property name="dropRootElement" value="true" /> <property name="dropCollectionWrapperElement" value="true" /> <property name="ignoreMixedContent" value="true" /> <property name="supportUnwrapped" value="true" /> <property name="attributesToElements" value="true" /> </bean>
View Code
REFERENCES:http://hdxiong.iteye.com/blog/1752036
http://stackoverflow.com/questions/10895982/apache-cxf-generates-number-instead-of-string
http://yufenfei.iteye.com/blog/1717098
相关文章推荐
- 关于CXF动态客户端相关问题
- osgi应用使用桥接的方式打成war包部署在websphere上时遇到的与cxf相关的问题
- Hadoop2.7.4详细配置与相关问题讲解
- 客户端axis调用cxf服务端webservice接口问题
- VC++2005相关问题解决方案
- Unix编程/应用问答中文版---4.系统资源相关问题
- 重复数据的相关问题
- Centos 6.4 Linux 相关问题总结
- UNDO相关问题总结(二)
- 在cxf中使用配置避免增加字段导致客户端必须更新的问题
- sharePoint2007 Forms 验证登陆 拒绝访问(Access Denied) 相关问题解决方案
- 与编译器相关的问题
- 针对VC版本及相关库的升级后程序无法运行问题举例说明
- 数据挖掘相关的10个问题
- Spring+CXF 实现类无法注入属性的问题
- 软件分析设计与管理 的相关问题
- 线性回归(Linear regression)及其相关问题
- 水晶报表部署以及相关问题解决方案
- baidu 留言板& 相关问题解决
- Java相关问题