2021年4月4日
摘要: Mapper 作为 Java 方法和 SQL 语句之间的桥梁,来更好地去使用 SQL 什么是Mapper 在MyBatis工程搭建 中我们主要讲解的是 MyBatis 如何连接数据库,具体执行 SQL 语句使用的是 JDBC 方式 但在实际应用中是不会选择 JDBC 来执行 SQL 的,MyBati 阅读全文
posted @ 2021-04-04 16:59 SpringTrap 阅读(1785) 评论(0) 推荐(0)
摘要: 准备数据源 示例 drop database if exists mybatis_demo; create database mybatis_demo; use mybatis_demo; create table user ( id int auto_increment primary key, 阅读全文
posted @ 2021-04-04 16:57 SpringTrap 阅读(120) 评论(0) 推荐(0)