在Dao层代码中加入@Transactional(readOnly = true, rollbackFor = RuntimeException.class)
No Hibernate Session bound to thread, and configuration does not allow
最新推荐文章于 2023-03-09 10:58:06 发布
在Dao层代码中加入@Transactional(readOnly = true, rollbackFor = RuntimeException.class)