SSH异常记录_Struts2+Spring4+Hibernate4
来源:互联网 发布:7月中国进出口数据 编辑:程序博客网 时间:2024/06/05 07:31
Messages:
Connection is read-only. Queries leading to data modification are not allowed
could not execute statementorg.hibernate.exception.GenericJDBCException: could not execute statement java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
spring事务限制:对method的名称进行了限定
<!-- 申明annotation 加载事务驱动,使用基于注解方式来配置事务 (如果是用的xml配置 可以不加这句) --><tx:annotation-driven transaction-manager="txManager"proxy-target-class="true" /><tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="creat*" propagation="REQUIRED" /> <tx:method name="update*" propagation="REQUIRED" /> <tx:method name="delete*" propagation="REQUIRED" /> <tx:method name="save*" propagation="REQUIRED" /> <tx:method name="add*" propagation="REQUIRED"/> <tx:method name="*" read-only="true" /> </tx:attributes></tx:advice>
Message:
Unable to show problem report: freemarker.template.TemplateModelException: Method public java.lang.String org.apache.commons.lang.exception.NestableRuntimeException.getMessage(int) threw an exception when invoked on net.sf.json.JSONException: There is a cycle in the hierarchy! Class: freemarker.ext.beans.SimpleMethodModel File: SimpleMethodModel.java Method: exec Line: 130 - freemarker/ext/beans/SimpleMethodModel.java:130:-1
生成json对象时,有对象,不能自动生成
0 0
- SSH异常记录_Struts2+Spring4+Hibernate4
- spring4+springmvc4+hibernate4异常
- 手动搭建SSH框架Struts2+Spring4+Hibernate4
- struts2、spring4、hibernate4(ssh)整合案例
- Spring4+Hibernate4
- ssh Struts2.3.16.1+Hibernate4.3.4+Spring4.0.2整合
- SSH框架手动整合——Struts2+Hibernate4+Spring4
- SSH(Struts2+Spring4+Hibernate4)框架教程之配置篇
- SSH框架搭建实例--Spring4+Struts2+Hibernate4搭建
- 使用spring4.3.7整合hibernate4.2.21异常处理
- spring4.1+hibernate4.3整合学习 问题记录1
- Spring4 与 Hibernate4 整合过程中的问题记录
- spring4+hibernate4 configlocation出错
- Struts2+Hibernate4+Spring4整合
- Spring4 MVC Hibernate4集成
- Spring4 MVC Hibernate4集成
- Spring4 MVC Hibernate4集成
- Spring4 MVC Hibernate4集成
- jdk更换问题
- Java学习笔记——面试常客:写出一个死锁的例子
- 上网页面被强制广告——简单分析
- Hdoj 5195 DZY Loves Topological Sorting 【拓扑】+【线段树】
- 【转自mos文章】使用单条sql来查询出awr中的syatem statistics
- SSH异常记录_Struts2+Spring4+Hibernate4
- OC语言注意事项三
- STL 容器区别:vector、list、deque、set、map的底层实现
- ZOJ 3879 Capture the Flag
- 清除DerivedData
- Eclipse常用快捷键
- 判断运行环境是否为模拟器
- eclipse应用技巧
- 黑马程序员——获取字符串中相同字符个数的方法