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类上面没有添加注解,出现异常

@Transactional

posted @ 2018-03-29 10:07  keepup~  阅读(115)  评论(0编辑  收藏  举报