警告: Hessian/Burlap: 序列号出现警告,怎么消除?虽然不影响,但是看着不爽

来源:3-9 业务场景实战之商城商品列表功能~列表查询功能自测实战-2

懂渊

2019-07-07 11:28

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo

七月 07, 2019 11:26:09 上午 com.alibaba.com.caucho.hessian.io.SerializerFactory getDeserializer

警告: Hessian/Burlap: 'com.debug.mooc.dubbo.one.model.entity.ItemInfo' is an unknown class in TomcatEmbeddedWebappClassLoader

  context: dubboTwo

  delegate: true

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@18b4aac2

:

java.lang.ClassNotFoundException: com.debug.mooc.dubbo.one.model.entity.ItemInfo


写回答 关注

1回答

  • 来在大横国的猿
    2019-08-18 10:59:25
    已采纳

    因为dubboTwo项目没有com.debug.mooc.dubbo.one.model.entity.ItemInfo这个类,我这边是这么解决的,在pom文件中引的是model,而不是api,这样就没警告信息了。

    <dependency>
        <groupId>top.freespace.dubbo.one</groupId>
        <artifactId>model</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>

2小时实战Apache顶级项目-RPC框架Dubbo分布式服务调度

快速入门并实战分布式任务调度框架Dubbo

20338 学习 · 145 问题

查看课程

相似问题