使用springside遇到Write operations are not allowed in read-only mode
2009-11-13 13:58
423 查看
使用springside写了一个数据库的CRUD,结果在保存对象的时候发现出了这个错误。
仔细查看了spring的applicationContext.xml发现,原来
<!-- 使用annotation定义事务 -->
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
是来是用annotation定义的事务
在service类前面加上@Transactional就可以了,否则默认的是readonly
仔细查看了spring的applicationContext.xml发现,原来
<!-- 使用annotation定义事务 -->
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
是来是用annotation定义的事务
在service类前面加上@Transactional就可以了,否则默认的是readonly
相关文章推荐
- 使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVER) 错误解决
- 解决Spring4+Hibernate4遇到的 Write operations are not allowed in read-only mode (FlushMode.MANUAL)
- ssh中的 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.
- Code Recyclebin Contact me QQ:149906878 Write operations are not allowed in read-only mode (FlushMo
- Write operations are not allowed in read-only mode 只读模式下(FlushMode.NEVER/MANUAL)写操作不
- Write operations are not allowed in read-only mode (FlushMode.MANUAL): 解决方法
- 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' mar
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushM
- Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly
- Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushM
- Write operations are not allowed in read-only mode 只读模式下(FlushMode.NEVER/MANUAL)写操作不允许
- hibernate异常:Write operations are not allowed in read-only mode
- Write operations are not allowed in read-only mode
- write operations are not allowed in read-only mode(flushMode.MANUAL)
- Write operations are not allowed in read-only mode (FlushMode.MANUAL):
- Write operations are not allowed in read-only mode的错误解决
- 使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVE
- Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn
- [forwarding]Write operations are not allowed in read-only mode 只读模式下(FlushMode.NEVER/MANUAL)写操作不允许问题
- [ssh2]list判断空,HQL from类,@Entity,Write operations are not allowed in read-only mode