摘要
该文简要介绍Spring的事务实现技术,讨论了Spring中的事务的两种实现方式。通过同一个案例阐述了在Spring中通过xml配置来实现事务和使用了Annotation实现事务,比较了两种实现方式的优缺点。对在Spring使用Annotation实现事务作了总结,从而体现使用Annotation实现事务简洁性和良好的扩展性。
This paper introduces the transaction technology,and describes two realization patterns of transaction in Spring.By an example to use transaction with XML configuration and with Annotation in Spring,its advantages and disadvantages have been a subject of discussion.The last section sums up all the arguments on Annotation used in combination with Spring transaction,and offers simplicity and good expandability.
出处
《微型电脑应用》
2009年第7期57-59,6,共3页
Microcomputer Applications