问题描述
spring-boot 2.3.4-RELEASE
mvn spring-boot:run
无法找出导致它的错误。项目中的其他 spring-boot 应用程序使用相同的 zipkin 配置和 application.yaml 运行良好。任何帮助弄清楚如何调试它都会有所帮助。
java.lang.IllegalStateException:org.springframework.cloud.sleuth.zipkin2.ZipkinBackwardsCompatibilityAutoConfiguration$BackwardsCompatibilityConfiguration 上的错误处理条件 在 org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60) ~[spring-boot-autoconfigure-2.3.4.RELEASE.jar:2.3.4.RELEASE]
pom.xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Hoxton.SR10</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
dependencies section sample of two zipkin/sleuth dependencies
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
</dependency>
application.yaml
spring:
application:
name: Test App
sleuth:
sampler:
probability: 0.5
trace-id128: true
web:
additional-skip-pattern: ".*/actuator.*"
zipkin:
enabled: true
base-url: http://${ZIPKIN_HOST:zipkin}/
service:
name: ${spring.application.name}
discovery-client-enabled: false
sender:
type: web
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)