摘要:
问题 ,spring 和 hibernate 整合 如何整合 1. Spring 使用Hibernate的的SessionFactory 2. Hibernate使用Spring提供的声明式事务 阅读全文
posted @ 2018-06-12 08:44
梦见舟
阅读(90)
评论(0)
推荐(0)
摘要:
@Transactional属性 1. propagation 事物的传播属性 2. isolation 事物的隔离属性 3. readonly 设置只读属性 4. timeout 设置超时属性 5. rollbackfor 回滚属性 阅读全文
posted @ 2018-06-12 08:40
梦见舟
阅读(101)
评论(0)
推荐(0)
摘要:
<!-- 配置 Spring 的声明式事务 --> <!-- 1. 配置事务管理器 --> <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <p 阅读全文
posted @ 2018-06-12 08:04
梦见舟
阅读(126)
评论(0)
推荐(0)

浙公网安备 33010602011771号