diff --git a/tests/examples/JDBC/mybatisplus-demo/pom.xml b/tests/examples/JDBC/mybatisplus-demo/pom.xml
index fc1d229330357c2ed5576b965d768ed3634e961a..54d4d824390b88aae5341100f18dd54d6ec1afc6 100644
--- a/tests/examples/JDBC/mybatisplus-demo/pom.xml
+++ b/tests/examples/JDBC/mybatisplus-demo/pom.xml
@@ -51,7 +51,10 @@
mysql-connector-java
5.1.47
-
+
+ org.springframework.boot
+ spring-boot-starter-web
+
org.springframework.boot
spring-boot-devtools
diff --git a/tests/examples/JDBC/mybatisplus-demo/src/main/java/com/taosdata/example/mybatisplusdemo/controller/WeatherController.java b/tests/examples/JDBC/mybatisplus-demo/src/main/java/com/taosdata/example/mybatisplusdemo/controller/WeatherController.java
new file mode 100644
index 0000000000000000000000000000000000000000..24200c088d0aa5725a73840c337843821c2b6c40
--- /dev/null
+++ b/tests/examples/JDBC/mybatisplus-demo/src/main/java/com/taosdata/example/mybatisplusdemo/controller/WeatherController.java
@@ -0,0 +1,35 @@
+package com.taosdata.example.mybatisplusdemo.controller;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.taosdata.example.mybatisplusdemo.domain.Weather;
+import com.taosdata.example.mybatisplusdemo.mapper.WeatherMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+@RestController
+@RequestMapping("/weathers")
+public class WeatherController {
+
+ @Autowired
+ private WeatherMapper mapper;
+
+ @GetMapping
+ public List findAll() {
+ Integer total = mapper.selectCount(null);
+ final int pageSize = 3;
+ Page page = new Page<>(1, pageSize);
+ Page currentPage = mapper.selectPage(page, null);
+ System.out.println("total : " + currentPage.getTotal());
+ System.out.println("pages : " + currentPage.getPages());
+ System.out.println("countId : " + currentPage.getCountId());
+ System.out.println("maxLimit: " + currentPage.getMaxLimit());
+
+ return currentPage.getRecords();
+ }
+
+
+}