Connection is read-only. Queries leading to data modification are not allowed
hibernate异常:Connection is read-only. Queries leading to data modification are not allowed
事物声明的是readOnly,但却在方法里做了对数据库修改的操作。
解决方案:修改事物,删除readOnly
博客链接:https://www.cnblogs.com/gqymy/