![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
_带头大哥
进击的小李
展开
-
mybatis学习笔记02
Mybatis 2.Mybatis基础的CRUD操作补充一个操作,idea中可以直接连接数据库CRUD测试@Testpublic void test1(){ SqlSession sqlSession = UserUtil.getSqlSession(); UserDao mapper = sqlSession.getMapper(UserDao.class); List<User> user = mapper.getUser(); for (User原创 2020-11-21 15:50:47 · 119 阅读 · 0 评论 -
Mybatis学习笔记01
1.Mybatis快速入门:①:编写Mybatis的配置文件:mybatis-config.xml<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"><configuration>原创 2020-11-21 15:47:23 · 100 阅读 · 0 评论