摘要:
public class JDBCUtils { private static Connection connection; static { try { Properties properties = new Properties(); properties.load(new FileReader 阅读全文
posted @ 2023-01-30 21:52
zwGitOne
阅读(26)
评论(0)
推荐(0)
摘要:
/** * 模拟账户:Tom账户加钱+100,marry账户减钱-100 * 开启事务 */ public class jdbcTransaction { public static void main(String[] args) { // 不使用事务,进行账户的增加 Connection con 阅读全文
posted @ 2023-01-30 21:49
zwGitOne
阅读(85)
评论(0)
推荐(0)