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 allowed 在操作数据库的时候出现了这个异常 很明显这个是只读引起的 原因:配置了只读事务 解决办法: 看下你的service层是否配置@Transactional(readOnly=true)
相关文章
相关标签/搜索