05 2024 档案
摘要:MyBatis-Plus分页插件使用 官方文档 https://baomidou.com/plugins/pagination/ 基本介绍 MyBatis-Plus 的分页插件 PaginationInnerInterceptor 提供了强大的分页功能,支持多种数据库,使得分页查询变得简单高效。 使
阅读全文
摘要:SpringBoot笔记 SpringBoot文档 官网: https://spring.io/projects/spring-boot 学习文档: https://docs.spring.io/spring-boot/docs/current/reference/html/ 在线API: http
阅读全文
摘要:手写MyBatis底层机制 读取配置文件,得到数据库连接 思路 引入必要的依赖 需要写一个自己的config.xml文件,在里面配置一些信息,driver,url ,password,username 需要编写Configuration类,对 自己的config.xml文件 进行解析,得到一个数据库
阅读全文
摘要:MyBatis笔记 MyBatis介绍 MyBatis 是一个持久层框架 前身是ibatis, 在ibatis3.x 时,更名为MyBatis MyBatis 在java 和sql 之间提供更灵活的映射方案 mybatis 可以将对数据表的操作(sql,方法)等等直接剥离,写到xml 配置文件,实现
阅读全文