项目中使用mybatis的分页插件pagehelper出现下面的警告

警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader

出现上面的警告,并不影响程序的运行。但是毕竟看着比较闹心。

使用debug进行代码根据发现,执行的过程中使用到了pagehelper插件中的一个叫做Page类。

Page类的源码如下:

警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader

 

 分析发现:出现上面的警告的原因是因为序列化和反序列化过程没有找到Page这个类。

要想解决上述问题,只需要在对应的业务层的pom.xml配置文件中加入pagehelper的依赖即可。

<dependency>
      <groupId>com.github.pagehelper</groupId>
      <artifactId>pagehelper</artifactId>
</dependency>

 

相关文章:

  • 2021-05-27
  • 2021-08-17
  • 2021-09-06
  • 2021-11-04
  • 2021-07-08
  • 2021-08-20
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-11-07
  • 2021-12-27
  • 2021-11-07
相关资源
相似解决方案