struts2 配置JSON(includeProperties)
来源:互联网 发布:淘宝有降价通知吗 编辑:程序博客网 时间:2024/05/21 10:41
< param name = "includeProperties" > < / param >
includeProperties: 这个属性表示要包含进JSON数据中的数据。
< param name="excludeProperties" >< / param >
excludeProperties: 这个属性表示不要包含进JSON数据中的数据。
< param name="excludeNullProperties" >true< / param >
excludeNullProperties: 这个属性表示去除空数据。
< param name="ignoreHierarchy" >false< / param >
ignoreHierarchy : 这个属性表示是否忽略等级,也就是继承关系,设置为 false 后会将父类和子类的属性一起返回
root:只包含xx对象
excludeProperties :除了xx之外的集合
includeProperties : 包含xx的集合
wrapPrefix :json结果开头添加xx(比如 [)
wrapSuffix :同上,只不过是结尾
ignoreHierarchy :转化时是否忽略继承关系true/false
enumAsBean : 是否将枚举当做一个bean处理
enableGZIP :是否支持gzip压缩输出
noCache :是否缓存
excludeNullProperties : 是否转化输出 null值
statusCode :设置响应代号比如 304
callbackParameter : JSONP跨域访问的回调设置
contentType : 输出类型
excludeProperties :除了xx之外的集合
includeProperties : 包含xx的集合
wrapPrefix :json结果开头添加xx(比如 [)
wrapSuffix :同上,只不过是结尾
ignoreHierarchy :转化时是否忽略继承关系true/false
enumAsBean : 是否将枚举当做一个bean处理
enableGZIP :是否支持gzip压缩输出
noCache :是否缓存
excludeNullProperties : 是否转化输出 null值
statusCode :设置响应代号比如 304
callbackParameter : JSONP跨域访问的回调设置
contentType : 输出类型
阅读全文
0 0
- struts2配置JSON(includeProperties)
- struts2 配置JSON(includeProperties)
- struts2 配置json格式数据( includeProperties中对list集合的正则配置)
- struts2 json includeProperties返回list为空
- struts2 jsonplugin includeProperties 对list集合的正则配置
- struts2 jsonplugin includeProperties 对list集合的正则配置
- struts2 jsonplugin includeProperties 对list集合的正则配置
- struts2 jsonplugin includeProperties 对list集合的正则配置
- struts2 jsonplugin includeProperties 对list集合的正则配置
- struts2 json result param name 是 root 和includeProperties 时的微小区别
- Jquery+Json+struts交互demo,以及为什么要配置includeProperties,root
- struts2配置JSON(上)
- struts2.2 json配置
- Struts2配置返回json
- struts2 json配置
- Struts2 Json 配置
- struts2中配置json
- struts2返回JSON配置
- git add时出现warning: LF will be replaced by CRLF错误,原因与解决方法
- C++使用Openssl进行RSA签名(sha1)--完整版
- 文章标题 数论线性筛总结 (素数筛,欧拉函数筛,莫比乌斯函数筛,前n个数的约数个数筛)
- 群规
- 树莓派USB存储设备自动挂载
- struts2 配置JSON(includeProperties)
- MVP+Retrofit+RxJava+Dagger框架
- layui文件上传跨域回调显示
- /bin/bash^M: bad interpreter: No such file or directory
- python函数&对象&模块之函数
- char,varchar,varchar2类型对空格的处理
- 【Java】【HashMap】HashMap 同步性能比较
- 4种会话追踪方式
- oracle11g 导出表报EXP-00011:table不存在。