hibernate插入数据测试无异常,但数据库没有数据
摘要:
解决方法: spring test测试默认会将事务回滚,如果想阻止spring transactional回滚,在test方法上加注解@Rollback(false)即可。 Hibernate hql getHibernateTemplate()常用方法汇总 getHibernateTemplate 阅读全文
posted @ 2017-08-09 15:46 让代码飞 阅读(237) 评论(0) 推荐(0) 编辑