类路径资源[org/springframework/cloud/sleuth/instrument/web/client/TraceWebClientAutoConfiguration$restemplateconfig$TraceInterceptorConfiguration.class]中定义的bean“traceresttemplatebeanpostsprocessor”,[org/springframework/cloud/sleuth/autoconfig/instrument/web/client/TraceWebClientAutoConfiguration$restemplateconfig$TraceInterceptorConfiguration.class]并禁用覆盖
POM文件中使用的附加sleuth依赖项:
<release.train.version>2020.0.4</release.train.version>
<spring-cloud-sleuth-otel.version>1.0.0-M12</spring-cloud-sleuth-otel.version>
<!-- Spring Cloud Sleuth requires a Spring Cloud BOM -->
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<!-- Provide the latest stable Spring Cloud release train version (e.g. 2020.0.0) -->
<version>${release.train.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- Spring Cloud Sleuth OTel requires a Spring Cloud Sleuth OTel BOM -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-otel-dependencies</artifactId>
<!-- Provide the version of the Spring Cloud Sleuth OpenTelemetry project -->
<version>${spring-cloud-sleuth-otel.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<!-- You 'll need those to add OTel support -->
<repositories>
<repository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-milestones</id>
<url>https://repo.spring.io/milestone</url>
</pluginRepository>
</pluginRepositories>
<dependencies>
<!-- Boot's Web support -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Sleuth with Brave tracer implementation -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-sleuth</artifactId>
<exclusions>
<!-- Exclude Brave (the default) -->
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-brave</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Add OpenTelemetry tracer -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-otel-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-otlp-trace</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.41.0</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-sleuth-zipkin</artifactId>
<version>3.0.3</version>
</dependency>
</dependencies>
默认情况下,Spring Boot 2.1中禁用了bean的重写。您可以尝试添加Spring。主要的在yml中允许bean定义重写=true,或者使用@ComponentScan从SpringBootApplication类中排除父配置。
Example :
@SpringBootApplication
@ComponentScan(excludeFilters =
{@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = TraceInterceptorConfiguration.class)})
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
有人能帮我解决这个错误吗?我的应用程序运行正常,但当点击活动按钮,它崩溃,出现此错误logcat。总之,我的. so文件在jniLibs文件夹中。 12-26 12:02:12.393 22612-22612/com.project.voicechangerE/AndroidRuntime: FATAL EXCEPTION:主进程:com.project.voicechanger, PID: 22
我对我的项目做了些什么。我想这是wghen我试图清理代码,并将一些文件从我的应用程序转移到一个共享模块。Android studio ver 3.0.1 当我试图构建项目时,我得到以下错误:任务':app:predebugbuild'的执行失败。
我在打包自己的nuget包时遇到了一个问题,其中包括Automapper5.0.2。这只是在Visual Studio Team Services(VSTeam)生成服务器中产生错误。
我已经分享了下面的代码,请让我知道更正 错误: 线程“main”org . open QA . selenium . nosuchelementexception中出现异常:无法找到类名= = lst lst-TBB SBI PPS的元素(警告:服务器未提供任何stacktrace信息)命令持续时间或超时:10.45秒
我在尝试构建android应用程序时遇到以下错误: 任务:app:MergeDebugResources失败 null 谢了!