开发者社区> 问答> 正文

ssh整合中的hibernateTemplate问题?报错

报错信息: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.

哪个高手给看看

展开
收起
爱吃鱼的程序员 2020-06-14 18:45:42 439 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    可惜我不会spring,不过错误提示很明显啊

    事务有打开么?应是spring事务未配好已解决,确实是事务的配置
    2020-06-14 18:45:59
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
introduction to Apache Bean 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载