异常:
: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.caucho.hessian.client.HessianRuntimeException: java.net.ConnectException: Connection refused] with root cause
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_77]
dubbo版本2.7.1,springboot版本2.1.3.RELEASE
客户端配置: spring.application.name=demo-consumer dubbo.scan.base-packages=com.demo.consumer dubbo.registry.protocol=zookeeper dubbo.registry.address=127.0.0.1:2181
服务端spring配置: dubbo.scan.basePackages=com.demo.provider dubbo.application.name=demo-provider dubbo.registry.protocol=zookeeper dubbo.registry.address=127.0.0.1:2181
dubbo.protocol.name=hessian dubbo.protocol.port=20881 dubbo.protocol.server=servlet dubbo admin上已经显示注册到zk了,但是客户端调用一直是超时
异常: : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.caucho.hessian.client.HessianRuntimeException: java.net.ConnectException: Connection refused] with root cause
java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_77]