HTTP Status 500 - Write operations are not allowed in read-only mode (FlushMode.MANUAL)

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.

 

在applicationContext.xml中配置事务管理器,并开启事务扫描

 

 

添加注解

 

posted @ 2018-01-10 13:53  朴小萌  阅读(201)  评论(0)    收藏  举报