Skip to content

Commit 155ea0a

Browse files
committed
添加PageHelper测试物理分页
1 parent 18b9c4c commit 155ea0a

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mapper/pom.xml

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<version>${project.version}</version>
3939
</dependency>
4040

41+
<dependency>
42+
<groupId>com.github.pagehelper</groupId>
43+
<artifactId>pagehelper</artifactId>
44+
<version>6.1.0</version>
45+
<scope>test</scope>
46+
</dependency>
4147
<dependency>
4248
<groupId>junit</groupId>
4349
<artifactId>junit</artifactId>

mapper/src/test/resources/mybatis-config.xml

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
<package name="io.mybatis.simple.model"/>
3131
</typeAliases>
3232

33+
<plugins>
34+
<!-- com.github.pagehelper为PageHelper类所在包名 -->
35+
<plugin interceptor="com.github.pagehelper.PageInterceptor"/>
36+
</plugins>
37+
3338
<environments default="development">
3439
<environment id="development">
3540
<transactionManager type="JDBC">

0 commit comments

Comments
 (0)