Write operations are not allowed in read-only mode (FlushMode.MANUAL)异常解决的一种方法
异常: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.
web.xml内容:
Service中是这样的:
具体spring事件配置如下:
呵呵!问题就这样简单的解决了!不知道我们碰到的问题是否一样!