访问本地服务正常,通过网关无法访问

来源:10-3 编写Spring Cloud Gateway

matthew21

2020-10-25

http://localhost:9099/users/1 正常,nacos可以看到服务已经注册

http://localhost:8040/user-center/users/1 无法访问到

网关服务打印如下日志

c.a.n.client.config.impl.ClientWorker    : get changedGroupKeys:[]

请问如何排查这个问题?

写回答

1回答

大目

2020-10-26

帮忙贴下网关的application.yml配置哦。此外,帮忙按照10-12节的描述,贴下Gateway /actuator/gateway/routes 端点的内容。我来看看

0
2
大目
回复
matthew21
好嘞,解决就好哦
2020-10-27
共2条回复

Spring Cloud Alibaba微服务从入门到进阶

面向未来微服务:熟练掌握Spring Cloud Alibaba

2979 学习 · 1299 问题

查看课程