[英]Spring Cloud Sleuth Zipkin 3.1.1 Missing some properties
I use Spring Cloud Sleuth Zipkin with its version 3.1.1.我使用 Spring Cloud Sleuth Zipkin 及其版本 3.1.1。
I have a problem about defining some properties in application.properties file.我在 application.properties 文件中定义某些属性时遇到问题。
The last two lines are in issue.最后两行有问题。 I got an unknown property warning.我收到一个未知属性警告。 How can I fix it?我该如何解决?
spring.zipkin.base-url=http://localhost:9411
spring.zipkin.sender.type=web
spring.sleuth.sampler.probability=1
I'm a bit late, but someone might find this useful.我来晚了,但有人可能会觉得这很有用。
You need to remove spring-cloud-sleuth-zipkin dependency and add the following two:您需要删除spring-cloud-sleuth-zipkin依赖并添加以下两个:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
<version>2.2.8.RELEASE</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.