报错如下:


Cause: java.sql.SQLException: Cannot execute statement in a READ ONLY transaction.
; uncategorized SQLException for SQL []; SQL state [25006]; error code [1792]; Cannot execute statement in a READ ONLY transaction.; nested exception is java.sql.SQLException: Cannot execute statement in a READ ONLY transaction. -(:106)

Cannot execute statement in a READ ONLY transaction.

原因为:方法名使用了get开头,事务管理中配置了对应的状态。

解决:修改方法名,起名的同时注意配置文件中的要求。

 

相关文章:

  • 2021-08-26
  • 2021-10-28
  • 2021-10-21
  • 2022-02-17
  • 2022-12-23
  • 2021-07-04
  • 2022-01-05
  • 2021-05-05
猜你喜欢
  • 2021-11-26
  • 2021-12-20
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案