当前位置: 代码迷 >> 综合 >> java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowe
  详细解决方案

java.sql.SQLException: Connection is read-only. Queries leading to data modification are not allowe

热度:73   发布时间:2023-12-07 00:57:04.0

原因:在service层设置了只读。@Transactional(readOnly = true)

而更新的方法没有把可读设置为FALSE。解决办法是在方法上加上readOnly=FALSE

  相关解决方案