摘要: MyBatis快速入门案例 1. 准备数据库 创建数据库db并指定utf8编码, 在数据库中创建表emp, 插入一些数据 -- 1、创建数据库 create database if not exists db charset utf8; use db; -- 选择数据库 -- 2、删除emp表(如果 阅读全文
posted @ 2020-06-17 18:34 zpk-aaron 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Mybatis MyBatis简介(了解) MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google code,并且改名为MyBatis 。2013年11月迁移到Github。 MyBatis是一个优 阅读全文
posted @ 2020-06-17 18:33 zpk-aaron 阅读(183) 评论(0) 推荐(0) 编辑
摘要: JDBC使用事务 JDBC设置事务隔离级别 JDBC中通过Connection提供的方法设置事务隔离级别: Connection.setTransactionIsolation(int level) leve参数可选值如下: Connection.TRANSACTION_READ_UNCOMMITT 阅读全文
posted @ 2020-06-17 14:40 zpk-aaron 阅读(209) 评论(0) 推荐(0) 编辑