美文网首页
2017-12-29

2017-12-29

作者: 爱因斯浩_刘培浩 | 来源:发表于2018-01-19 10:11 被阅读0次

    最近项目用到SpringBoot + Dubbo的模块化开发,每个模块的Server通过Dubbo向外暴露服务,Web端使用服务。

    Server端通过main方法启动服务之后,在管理中心也看到了服务,但是启动web端的时候,报错如下

    java.lang.IllegalArgumentException: interface com.zhongpin.dubbo.api.dubboDemoProxy is not visible from class loader

    仔细看错误日志,提示的很清楚   发现是 jar包冲突,

    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.1.RELEASE.jar:1.5.1.RELEASE]

    仔细看了下自己的Maven依赖,

    配置了热部署,将其注释掉,成功跑起来。

    相关文章

      网友评论

          本文标题:2017-12-29

          本文链接:https://www.haomeiwen.com/subject/hptigxtx.html