spring–事务配置的两种方式 http://my.oschina.net/u/2312022/blog/743118

 

方式一:使用注解

备注:这种方式是,在需要加事务的方法上面使用@Transactional()来指定事务。
方法二:使用xml配置