Positioned Update not supported
来源:互联网 发布:centos 网卡uuid 编辑:程序博客网 时间:2024/05/18 02:28
太常见的问题了,
该异常有两种解决方法:
第一:在struts.xml文件的配置中排除不要被JSON序列化的属性,例如:
<action name="functions" class="getFunctionsAction" method="functions_getList">
<result type="json">
<param name="excludeProperties">functionsService</param>
</result>
</action>
其中functionsService就是不要被JSON序列化的属性。
第二:在Action文件中去除不要被JSON序列化的属性的get()方法,例如:
public IFunctionsService getFunctionsService() {
return functionsService;
}
这样做functionsService同样不会被JSON序列化。
说明:
带有transient修饰符与没有Getter方法的字段(field)都不会被串行化为JSON。
不行就新建个action即可解决。
该异常有两种解决方法:
第一:在struts.xml文件的配置中排除不要被JSON序列化的属性,例如:
<action name="functions" class="getFunctionsAction" method="functions_getList">
其中functionsService就是不要被JSON序列化的属性。
第二:在Action文件中去除不要被JSON序列化的属性的get()方法,例如:
public IFunctionsService getFunctionsService() {
这样做functionsService同样不会被JSON序列化。
说明:
带有transient修饰符与没有Getter方法的字段(field)都不会被串行化为JSON。
不行就新建个action即可解决。
- Positioned Update not supported.
- Positioned Update not supported
- Positioned Update not supported异常处理
- 解决Jsonwriter发生的Positioned Update not supported问题
- net.sf.json.JSONException: Positioned Update not supported.
- Struts2使用json-plugin出现java.sql.SQLException: Positioned Update not supported异常
- Ad hoc update to system catalogs is not supported. 解决方案
- Not supported for DML operations [ UPDATE ltd.miku.xxx.xxx SET xxxxxxx
- *** Your GCC is older than 6.0 and is not supported ubuntu update gcc-6.1
- QSqlQuery::value: not positioned on a valid record
- QSqlQuery::value: not positioned on a valid record
- qt关于not positioned on a valid record
- QSqlQuery::value: not positioned on a valid record
- QSqlQuery::value: not positioned on a valid record
- informix Locale not supported
- ssl is not supported
- nested transactions not supported
- !! command not supported: "navi."
- iOS唯一标示符引导
- struts2 json 插件 @JSON(serialize = false)
- Oracle命令--oracle权限管理
- ubuntu下git服务器的搭建
- jdbc高级模板技术
- Positioned Update not supported
- Oracle命令--更改字符集为中文
- 项目团队需要重新认识架构师的职责
- vb6.0 求素数按奇偶显示
- YUV RGB 常见视频格式解析
- Wireshark图解教程(简介、抓包、过滤器)
- LCA问题(最近公共祖先问题)+ RMQ问题
- EM算法推导
- Oracle命令--查询语句