![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
小矮多
这个作者很懒,什么都没留下…
展开
-
MyBatis批处理,使用foreach
批量生成的SQL太长,可能会被服务器拒绝。无法获取插入数据的id。原创 2023-09-17 13:40:43 · 154 阅读 · 0 评论 -
MyBatis分页插件PageHelper的使用
2.在mybatis-config.xml中添加配置。3.调用PageHelper.startPage。6.SQL Server 2000分页。1.在pom.xml中添加依赖。5.Oracle分页。原创 2023-09-17 12:44:29 · 139 阅读 · 0 评论 -
MyBatis配置C3P0连接池
3.在mybatis-config.xml中配置数据源。1.在pom.xml中添加C3P0依赖。原创 2023-09-17 13:01:25 · 200 阅读 · 0 评论 -
MyBatis注解开发
2.mybatis-config.xml中添加mapper。3.测试查询方法selectByPriceRange。4.测试插入方法insert。MyBatis常用注解。1.dao包下创建接口。原创 2023-09-17 20:42:01 · 411 阅读 · 0 评论 -
Mybatis入门
Mybatis开发流程:1. 引入Mybatis依赖 2. 创建核心配置文件 3. 创建实体类Entity 4. 创建mapper映射文件 5. 初始化SessionFactory 6. 利用SqlSession对象操作数据原创 2023-02-12 20:59:09 · 497 阅读 · 0 评论