Write operations are not allowed in read-only mode(转)
使用Spring提供的Open Session In View而引起Write operations are not allowed in read-only mode (FlushMode.NEVER) 错误解决:
在没有使用Spring提供的Open Session In View情况下,因需要在service(or Dao)层里把session关闭,所以lazy load...
原创
2011-05-11 16:19:27 ·
70 阅读 ·
0 评论