Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
来源:互联网 发布:乐视re软件 编辑:程序博客网 时间:2024/06/05 19:37
在做批量删除时出现:
Connection is read-only. Queries leading to data modification are not allowed
检查代码,没有问题!
忽然想到spring配置文件上,是只读的!
把readOnly去掉就可以了
Connection is read-only. Queries leading to data modification are not allowed
检查代码,没有问题!
忽然想到spring配置文件上,是只读的!
<props> <prop key="create*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="save*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="add*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="remove*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="update*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="del*">PROPAGATION_REQUIRED,-com.worthtech.app.exception.SCException</prop> <prop key="*">PROPAGATION_REQUIRED,readOnly</prop> </props>
把readOnly去掉就可以了
0 0
- Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
- Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
- 解决ssh中Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- jeeplus Connection is read-only. Queries leading to data modification are not allowed
- (dao)Connection is read-only. Queries leading to data modification are not allowed
- springboot JPA Connection is read-only. Queries leading to data modification are not allowed
- Connection is read-only. Queries leading to data modification are not allowed
- Meta 标签使用详解
- Request中getContextPath、getServletPath、getRequestURI、request.getRealPath的区别
- android中getSystemService详解
- 各类排序算法优缺点对比
- java调用mysql命令 导入导出数据库
- Hibernate批量删除出现sql异常Connection is read-only. Queries leading ... are not allowed
- SQL注入攻击演示代码
- 使用jQuery动态绑定事件插件livequery弥补live的不足
- 安卓textview代码换行
- 网络编程_UDP协议发送数据
- 多选本地相册中的图片并展示(仿QQ空间动态发送页面)上传至服务器
- 使用Implementors插件方便的定位到某个接口的实现类
- PHP Redis 限制API和各种接口 请求频率
- 权限控制