#配置SpringCloud,只配置配置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
解决方法:
加上@LoadBalanced
java.net.UnknownHostException: CLOUD-PAYMENT-SERVICE
最新推荐文章于 2024-06-21 13:21:00 发布