一.前言 ? ? ? ? 继上篇MyBatis 的文章,我们继续来学习MyBatis吧!!! 上篇的博客链接: ? ? 接下来进入我们的正文吧!!! 二.MyBatis 的分页 ? ? ? ? ?导入pom文件,分页插件,需要借助这些来完成分页 pom.xml配置文件: Mybatis.cfg.xml配置拦截器: <plugins> ?? <!-- 配置分页插件PageHelper, 4.0.0以后的版本支持自动识别使用的数据库 --> ????<plugin?interceptor="com.github.pagehelper.PageInterceptor"> ?? </plugin> </plugins> 配置分页工具类: ????????Mapper.xml文件:??????? ? ??? ? ?测试: 三.MyBatis 的特殊字符处理 ? ??? ?
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile