java.net.UnknownHostException: CLOUD-PAYMENT-SERVICE ╰+攻爆jí腚メ 2024-03-27 09:24 26阅读 0赞 **Eureka** Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://CLOUD-PAYMENT-SERVICE/payment/get/31": CLOUD-PAYMENT-SERVICE; nested exception is java.net.UnknownHostException: CLOUD-PAYMENT-SERVICE] with root cause ![在这里插入图片描述][4dd01070ced54e67869fb08fd9cd99ce.png] 解决方法: 加上@LoadBalanced ![在这里插入图片描述][9cd7f75a484b4a9396489e11bd52fdcb.png] [4dd01070ced54e67869fb08fd9cd99ce.png]: https://image.dandelioncloud.cn/pgy_files/images/2024/03/27/367d75a3b3f141f2a58f6bed907c6b96.png [9cd7f75a484b4a9396489e11bd52fdcb.png]: https://image.dandelioncloud.cn/pgy_files/images/2024/03/27/1283c34b24ee470db00b8736159bf2b4.png
还没有评论,来说两句吧...