制作完成于2018年5月11日 使用JDK8
con.setAutoCommit(false);开启事务
con.commit();关闭事务;
con 是co
connection.setAutoCommit(false); //手动开启事务
connection.commit(); //提交事务