![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
文章平均质量分 79
zn01611
这个作者很懒,什么都没留下…
展开
-
Write operations are not allowed in read-only mode 只读模式下(FlushMode.NEVER/MANUAL)写操作不允
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnl转载 2012-10-19 10:20:53 · 1157 阅读 · 0 评论 -
spring sessionfactory错误 nvocation of init method failed; nested exception is java.lang.NoSuchMethod
Invocation of init method failed; nested exception is java.lang.NoSuchMethodError (2011-09-19 16:37:18) 转载▼ 标签: 杂谈 启动Tomcat报出此异常信息,出异常时正常的,但是出不认识的异常有些出乎预料。 2011-4转载 2012-10-19 09:31:04 · 27712 阅读 · 1 评论 -
spring整合hibernate使用getHibernateTemplate().save()方法不能输入数据库
今天使用早就搭好的项目,试图保存用户信息的时候,使用this.getHibernateTemplate().save(user);方法之后发现并没有插入到数据库中数据。于是开始在网上找各种资料,由于并没有深入的研究过spring和hibernate的源码,所以下面的解决方法只能是 "所以",而不会是 “之所以”。 首先,先看一下单纯的hibernate是怎么保存实体对象的: Session.s转载 2012-10-19 10:19:24 · 10152 阅读 · 0 评论