报错信息
Could not resolve type alias 'com.github.mybatis.helper.page.PageSqlInterceptor'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.github.mybatis.helper.page.PageSqlInterceptor
原因
报错的位置是 mybatis-config.xml 文件中的 <plugin interceptor="com.github.mybatis.helper.page.PageSqlInterceptor"> </plugin> 位置,缺少相关的依赖.
解决方案
在pom文件中增加相关的依赖,代码如下
<dependency> <groupId>com.github.willtong</groupId> <artifactId>mybatis-helper-page</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>com.github.willtong</groupId> <artifactId>mybatis-helper-datascope</artifactId> <version>2.1.0</version> </dependency> <dependency> <groupId>com.github.willtong</groupId> <artifactId>mybatis-helper-commonfield</artifactId> <version>2.1.0</version> </dependency>
标签:resolve,helper,PageSqlInterceptor,github,mybatis,com,page From: https://www.cnblogs.com/dawenyang/p/17502260.html