使用PageHelper插件进行分页查询时,工程发布后控制台报出警告如下:
警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
context:
delegate: false
repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
:
java.lang.ClassNotFoundException: com.github.pagehelper.Page
三月 26, 2019 3:02:15 下午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer
警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
context:
delegate: false
repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
:
java.lang.ClassNotFoundException: com.github.pagehelper.Page
三月 26, 2019 3:03:52 下午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer
警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
context:
delegate: false
repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
:
java.lang.ClassNotFoundException: com.github.pagehelper.Page
三月 26, 2019 3:07:45 下午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer
警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
context:
delegate: false
repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
:
java.lang.ClassNotFoundException: com.github.pagehelper.Page
三月 26, 2019 3:08:11 下午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer
警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
context:
delegate: false
repositories:
----------> Parent Classloader:
ClassRealm[plugin>org.apache.tomcat.maven:tomcat7-maven-plugin:2.2, parent: sun.misc.Launcher$AppClassLoader@4e25154f]
:
java.lang.ClassNotFoundException: com.github.pagehelper.Page
但不影响使用,这是因为程序启动后得到的是一个Page
它继承了ArrayList , 在运行过程中被传递给查询结果 , 这只是序列化和反序列化的问题 , 可以忽略 , 如果想去掉警告 , 可在调用该类的工程pom文件中添加依赖即可.