2 speechlesssun speechlesssun 于 2015.07.20 15:40 提问

not allowed in read-only mode没配置事务,为何报事务方面的错

org.springframework.dao.InvalidDataAccessApiUsageException: 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.
项目里面根本没配置任何有关事务的东西,为何会报关于事务的错,求解!框架是springmvc4+spring4+hibernate4

1个回答

CSDNXIAOS
CSDNXIAOS   2015.07.20 15:48

operations are not allowed in read-only mode

 

org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your......
答案就在这里:operations are not allowed in read-only mode
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

Csdn user default icon
上传中...
上传图片
插入图片