Java报错之Connection is read-only.
来源:互联网 发布:java集成开发工具 编辑:程序博客网 时间:2024/05/22 18:22
原因很简单,查看spring的配置,发现有如下标签:
<tx:attributes>
<tx:method name="find*" propagation="REQUIRED" read-only="true" />
<tx:method name="query*" propagation="REQUIRED" read-only="true" />
<tx:method name="list*" propagation="REQUIRED" read-only="true" />
<tx:method name="search*" propagation="REQUIRED" read-only="true" />
<tx:method name="get*" propagation="REQUIRED" read-only="true" />
<tx:method name="save*" propagation="REQUIRED" />
<tx:method name="update*" propagation="REQUIRED" />
<tx:method name="delete*" propagation="REQUIRED" />
<tx:method name="create*" propagation="REQUIRED" />
<tx:method name="*" propagation="SUPPORTS" />
</tx:attributes>
带有read_only 的标签,表示,方法名以find,quey,list,search,get 开头,是只读的。
解决办法就是改方法名
- Java报错之Connection is read-only.
- spring定时任务 Connection is read-only
- Mysql 报错 1036 Table '表名' is read only
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data
- Connection is read-only问题的产生原因与解决方法
- ResultSet is read only .
- Table is 'read only'
- weblogic“InstrumentationEngineConfig.ser”read-only报错
- Linux报错:read-only file system
- Play Framework 报错 java.sql.SQLException: Connection is closed!
- Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
- [Havok学习笔记(7)] 样例US_Soldier_Project.hkp学习
- 通过修改指示器的间距来改变TabLayout指示器的宽度
- C#学习笔记1
- 走向云计算之Hadoop实际应用网站日志分析
- 银联双向认证原理
- Java报错之Connection is read-only.
- 微信二维码支付接口
- spring+quartz实现定时任务遇到问题总结(bean无法注入)
- s 点击a标签 获取a的自定义属性方法_javascript技巧
- 项目部署到阿里云以及域名解析遇到的坑
- 【noip题目代码】其实DFS和动态规划是亲兄弟
- 生成编号
- 使用Mockito进行单元测试
- element-wise