So, the entire solution is to add dependent PageHelper and Mybatis in the web of the pom.xml.
1 <dependency> 2 <groupId>com.github.pagehelper</groupId> 3 <artifactId>pagehelper</artifactId> 4 </dependency> 5 6 <dependency> 7 <groupId>org.mybatis</groupId> 8 <artifactId>mybatis</artifactId> 9 </dependency>