SpringBoot报错 java.sql.SQLException: Connection is read-only. Queries leading to data modificat

@Transactional(readOnly = false, rollbackFor = BusinessException.class)

设置下这个注解,处理下事务即可。

posted @ 2020-02-19 16:44  虹梦未来  阅读(11)  评论(0编辑  收藏  举报  来源