JavaWebError01(HTTP Status 500 - Write operations are not allowed in read-only mode)

样式:

HTTP Status 500 - 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

图片:

 

解决方式:service层没有添加事务管理,因此在service层添加@Transactional注解即可

posted @ 2018-04-30 23:13  六师兄丶  阅读(121)  评论(0编辑  收藏  举报