java.lang.ClassNotFoundException: com.github.pagehelper.Page

 

 主要原因是使用PageHelper在【服务层】进行分页查询时返回的结果是一个Page对象,在服务发布于获取的序列化与反序列化中会去找Page,然而Page对象继承ArrayList,在最终接收时这个返回对象时,List并没有报错,但是在【引用服务的web层】并没有PageHelper的jar包,所以发出警告;

解决办法:

  在web层的pom.xml文件中添加依赖

  <dependency>
  <groupId>com.github.pagehelper</groupId>
  <artifactId>pagehelper</artifactId>
  </dependency>
posted @ 2019-11-12 22:18  文所未闻  阅读(3771)  评论(0编辑  收藏  举报