使用SSH框架做保存操作时,忘记加事务,报了以下错误:
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove ‘readOnly’ marker from transaction definition.
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read
加入事务注解,问题解决:
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read

相关文章:

  • 2021-08-24
  • 2021-07-04
  • 2021-12-03
  • 2022-12-23
  • 2021-10-11
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2021-09-27
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案