完整报错为:
org.springframework.web.client.ResourceAccessException: I/O error on POST request for “http://localhost:9411/api/v2/spans”: connect timed out; nested exception is java.net.SocketTimeoutException: connect timed out
原因:
依赖中含有 zipkin 依赖,没有配置 zipkin-server, 默认提交9411,新版本已经移除 zipkin依赖
解决方法:
删除pom文件中zipkin依赖:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
原文链接:
https://gitee.com/log4j/pig/issues/I161YA#note_2119281