PageHelper报错解决方案
网上查了挺久,用ssm实现分页需求,挺多人推荐pagehelper这个工具类,感觉用起来比较简单,也不用去搬各种分页工具类或者自己通过mybatis的limit来手动写分页。
按照官方文档中在maven引入依赖,做简单的测试时一直报错找不到目标类。网上查了很多,有的说是版本不匹配的问题,比如
<!--在pagehelper5.0及以上-->
<plugins>
<plugin interceptor="com.github.pagehelper.PageInterceptor">
</plugin>
</plugins>
<!--在pagehelper5.0以下-->
<plugins>
<plugin interceptor="com.github.pagehelper.PageHelper"