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(readOn
原创
2017-08-14 15:48:04 ·
18103 阅读 ·
2 评论