nacos-group / nacos-examples

Nacos Examples
Apache License 2.0
951 stars 1.47k forks source link

nacos-spring-cloud-discovery-example 请求异常 #15

Closed 15036900300 closed 5 years ago

15036900300 commented 5 years ago

本地启动Nacos服务,并将example-providerexample-consumer注册服务成功,但是通过postman请求consumer接口时,报404,如下所示:

2019-03-25 11:13:25.271 INFO 1169 --- [nio-8002-exec-1] c.n.l.DynamicServerListLoadBalancer : DynamicServerListLoadBalancer for client tairan-spring-cloud-nacos-provider initialized: DynamicServerListLoadBalancer:{NFLoadBalancer:name=tairan-spring-cloud-nacos-provider,current list of Servers=[10.236.173.80:8001],Load balancer stats=Zone stats: {unknown=[Zone:unknown; Instance count:1; Active connections count: 0; Circuit breaker tripped count: 0; Active connections per server: 0.0;] },Server stats: [[Server:10.236.173.80:8001; Zone:UNKNOWN; Total Requests:0; Successive connection failure:0; Total blackout seconds:0; Last connection made:Thu Jan 01 08:00:00 CST 1970; First connection made: Thu Jan 01 08:00:00 CST 1970; Active Connections:0; total failure count in last (1000) msecs:0; average resp time:0.0; 90 percentile resp time:0.0; 95 percentile resp time:0.0; min resp time:0.0; max resp time:0.0; stddev resp time:0.0] ]}ServerList:org.springframework.cloud.alibaba.nacos.ribbon.NacosServerList@3e424d06
2019-03-25 11:13:25.308 ERROR 1169 --- [nio-8002-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$NotFound: 404 null] with root cause

org.springframework.web.client.HttpClientErrorException$NotFound: 404 null