Spring+Hibernate事务管理

时间:2020-11-03 14:15:07
【文件属性】:
文件名称:Spring+Hibernate事务管理
文件大小:14.57MB
文件格式:ZIP
更新时间:2020-11-03 14:15:07
事务 Spring将事务管理分成了两类: * 编程式事务管理 * 手动编写代码进行事务管理.(很少使用) * 声明式事务管理: * 基于TransactionProxyFactoryBean的方式.(很少使用) * 需要为每个进行事务管理的类,配置一个TransactionProxyFactoryBean进行增强. * 基于AspectJ的XML方式.(经常使用) * 一旦配置好之后,类上不需要添加任何东西 * 基于注解方式.(经常使用) * 配置简单,需要在业务层上添加一个@Transactional的注解. 本工程是这四种事务管理的使用方法整理
【文件预览】:
SpringTransaction
----.project(2KB)
----.settings()
--------org.springframework.ide.eclipse.core.prefs(217B)
--------.jsdtscope(500B)
--------org.eclipse.wst.common.component(489B)
--------org.eclipse.jdt.core.prefs(395B)
--------org.eclipse.wst.common.project.facet.core.xml(252B)
--------org.eclipse.wst.jsdt.ui.superType.container(49B)
--------org.eclipse.wst.jsdt.ui.superType.name(6B)
----.mymetadata(324B)
----WebRoot()
--------数据库建表.txt(378B)
--------使用说明.txt(412B)
--------WEB-INF()
--------index.jsp(834B)
--------META-INF()
----.myeclipse()
----src()
--------log4j.properties(1KB)
--------com()
--------db.properties(144B)
--------applicationContext.xml(5KB)
----hibernate.reveng.xml(418B)
----.springBeans(415B)
----.classpath(5KB)
----.myhibernatedata(581B)

网友评论