在引入mybatis-plus之前,是存在mybatis的包和pagehelper包的,把這兩個注釋掉就可以了。
分頁就使用mybatis-plus自帶的IPage。
<!-- SpringBoot集成mybatis框架 --> <!--<dependency>--> <!--<groupId>org.mybatis.spring.boot</groupId>--> <!--<artifactId>mybatis-spring-boot-starter</artifactId>--> <!--<version>${mybatis.spring.boot.starter.version}</version>--> <!--</dependency>--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.2.0</version> </dependency> <!-- pagehelper 分頁插件 --> <!--<dependency>--> <!--<groupId>com.github.pagehelper</groupId>--> <!--<artifactId>pagehelper-spring-boot-starter</artifactId>--> <!--<version>${pagehelper.spring.boot.starter.version}</version>--> <!--</dependency>-->