We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d65269e commit 12c3bf0Copy full SHA for 12c3bf0
README.md
@@ -3,8 +3,20 @@
3
基于 exectur 拦截 查询请求
4
#### For Example
5
6
+* 1.java 代码示例:
7
```java
8
PageHelper.pageStart(pager);
9
+//mapper方法 以 ByPager 结尾,这是可配置的
10
List<Object> list = testerMapper.selectListByPager(post);
-pager = PageHelper.pageEnd();
11
+PageHelper.pageEnd();
12
```
13
+* 2.在mybatis -config.xml 中的配置
14
+```xml
15
+<plugins>
16
+ <plugin interceptor="com.zuicoding.platform.mybatis.pagination.PaginationHandler">
17
+ <property name="dialect" value="xxx.xxx.xxx"/>`
18
+ </plugin>
19
+ </plugins>
20
+```
21
+* 3.sql 方言 dialect 是可配置的,目前提供的有mysql的方言。
22
+ 当然如果 你可以自定义 sql dialect ,只需要实现 IDialect 接口就可以了,然后在 `<property name="dialect" value="xxx.xxx.xxx"/>`配置你的实现类引用就可以了。
0 commit comments