gpt4 book ai didi

spring-boot - reactor/netty/resources/ConnectionProvider.fixed(Ljava/lang/String;IJLjava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;

转载 作者:行者123 更新时间:2023-12-04 14:09:51 25 4
gpt4 key购买 nike

Spring Boot 应用程序使用 Azure Cosmos DB 启动失败
描述:
试图调用不存在的方法。尝试是从以下位置进行的:

com.azure.cosmos.implementation.http.HttpClient.createFixed(HttpClient.java:56)
以下方法不存在:
reactor.netty.resources.ConnectionProvider.fixed(Ljava/lang/String;IJLjava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
该方法的类 reactor.netty.resources.ConnectionProvider 可从以下位置获得:
jar:file:/Users/vishnuvuyyur/.m2/repository/io/projectreactor/netty/reactor-netty-core/1.0.1/reactor-netty-core-1.0.1.jar!/reactor/netty/resources/ConnectionProvider.class
类层次结构是从以下位置加载的:
reactor.netty.resources.ConnectionProvider: file:/Users/vishnuvuyyur/.m2/repository/io/projectreactor/netty/reactor-netty-core/1.0.1/reactor-netty-core-1.0.1.jar

最佳答案

错误原因:

  • 正如在日志中所说:com.azure.cosmos.implementation.http.HttpClient.createFixed(HttpClient.java:56)
  • azure cosmos 库没有用最新的spring boot 版本更新
  • 当前问题可以通过 spring-boot 2.4.0 和 azure cosmos db 3.0.0-beta.1 重现
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.3.RELEASE</version>

    <dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-cosmosdb-spring-boot-starter</artifactId>
    <version>3.0.0-beta.1</version>

  • 修复,由于 azure db 版本 3.0.0-beta.1 不支持 spring 2.4.0,因此将 spiring 启动版本降低到 2.3.5
  • 关于spring-boot - reactor/netty/resources/ConnectionProvider.fixed(Ljava/lang/String;IJLjava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65183926/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com