后台报了Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
这时要看service层是否配置了事务@Transactional(readOnly=false)
本文探讨了当后台出现Connection is read-only. Queries leading to data modification are not allowed错误时的解决方案,强调检查Service层是否正确配置了事务注解@Transactional(readOnly=false),以确保数据修改操作能够正常进行。
后台报了Cause: java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowed
这时要看service层是否配置了事务@Transactional(readOnly=false)
4万+
9627
622
156
1万+

被折叠的 条评论
为什么被折叠?