openSessionInView,如果没有配置事务,会出现Write operations are not allowed in read-only mode。。。错误

来源:互联网 发布:淘宝商品抓取工具 编辑:程序博客网 时间:2024/05/18 09:40
openSessionInView的特点是当他拦截到一个方法时,如果这个方法没配事务,它会认为这个任务是只读的,如果没配事务,会出现Write operations are not allowed in read-only mode。。。错误
原创粉丝点击