//开启新事务
DefaultTransactionDefinition transDefinition = new DefaultTransactionDefinition();
transDefinition.setPropagationBehavior(DefaultTransactionDefinition.PROPAGATION_REQUIRES_NEW);
TransactionStatus transStatus = this.transactionManager.getTransaction(transDefinition);
//以下为JdbcTempalte的更新操作(省略具体代码)
this.jdbcTemplate.batchUpdate(..
..
//最后手动提交事务,可通过try{}catch(){} 进行异常回滚this.transactionManager.rollback(transStatus);
this.transactionManager.commit(transStatus);
//this.transactionManager为系统注入的类型为(父类)PlatformTransactionManager事务管理器