我在本地主机上使用webclient时出错了,你们能帮我吗?
ERROR org.springframework.boot.autoconfigure.web.reactive.error.AbstractErrorWebExceptionHandler - [0e1ef5cd-1] 500 Server Error for HTTP G
ET "/product/spec/template/posts"
product | io.netty.channel.AbstractChannel$AnnotatedConnectException: finishConnect(..) failed: Connection refused: localhost/127.0.0.1:8090
product | Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
product | Error has been observed at the following site(s):
product | |_ checkpoint ⇢ Request to GET http://localhost:8090/retailer/retailer/posts/12 [DefaultWebClient]
product | |_ checkpoint ⇢ Handler com.zucco.tech.hm.service.product.controller.ProductSpecTemplateController#posts() [DispatcherHandler]
product | |_ checkpoint ⇢ org.springframework.boot.actuate.metrics.web.reactive.server.MetricsWebFilter [DefaultWebFilterChain]
product | |_ checkpoint ⇢ HTTP GET "/product/spec/template/posts" [ExceptionHandlingWebHandler]
product | Stack trace:
product | Caused by: java.net.ConnectException: finishConnect(..) failed: Connection refused
product | at io.netty.channel.unix.Errors.throwConnectException(Errors.java:124) ~[netty-transport-native-unix-common-4.1.51.Final.jar!/:4.1.51.Final]
发布于 2020-08-21 12:34:09
连接拒绝意味着没有服务器监听地址:端口。您可以使用netstat -tulpen
检查在哪个地址上打开了哪些端口。
https://stackoverflow.com/questions/63521577
复制相似问题