随笔分类 -  Mybatis

Mybatis
摘要:整合SSM 1.环境搭建 导入相关的pom依赖 <!-- jackson --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version 阅读全文
posted @ 2020-06-21 00:57 shy温温温 阅读(79) 评论(0) 推荐(0)
摘要:1.环境搭建 1.1.导入依赖 <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> </dependency> <!-- Spring需要的依赖--> <!-- ht 阅读全文
posted @ 2020-06-12 17:26 shy温温温 阅读(722) 评论(0) 推荐(0)
摘要:Mybatis之动态sql 1.搭建环境 参考Mybatis入门 1. 创建一个测试表 create table phone ( id varchar(255) not null primary key, phone_name varchar(225) null, phone_type varcha 阅读全文
posted @ 2020-06-08 17:49 shy温温温 阅读(156) 评论(0) 推荐(0)
摘要:Mybatis入门之级联关系 1.环境搭建 参考Mybatis入门 2.创建存在有级联关系的两张表 小说表--章节表 3.代码准备工作 1.创建工具类 public class MybatisUntils { private static SqlSessionFactory sqlSessionFa 阅读全文
posted @ 2020-06-07 21:49 shy温温温 阅读(176) 评论(0) 推荐(0)