国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

spring-cloud-gateway版本和springboot版本不匹配

這篇具有很好參考價(jià)值的文章主要介紹了spring-cloud-gateway版本和springboot版本不匹配。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

在搭建gateway服務(wù)的時(shí)候,啟動(dòng)出現(xiàn)以下問題:

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

? ? org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.buildConnectionProvider(GatewayAutoConfiguration.java:798)

The following method did not exist:

? ? reactor.netty.resources.ConnectionProvider$Builder.evictInBackground(Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider$ConnectionPoolSpec;

The method's class, reactor.netty.resources.ConnectionProvider$Builder, is available from the following locations:

? ? jar:file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar!/reactor/netty/resources/ConnectionProvider$Builder.class

The class hierarchy was loaded from the following locations:

? ? reactor.netty.resources.ConnectionProvider.Builder: file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar
? ? reactor.netty.resources.ConnectionProvider.ConnectionPoolSpec: file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider$Builder

?這個(gè)看就是依賴導(dǎo)致的,應(yīng)該是springBoot的和spring cloud版本不符導(dǎo)致的。我現(xiàn)在錯(cuò)誤的版本是:Spring-boot是2.3.0.RELEASE,Spring-cloud是Hoxton.SR12這是不符合的。

改成:Spring-boot是2.3.0.RELEASE,Spring-cloud是Hoxton.SR8 或者?Spring-boot是2.3.12.RELEASE,Spring-cloud是Hoxton.SR12就可以了文章來源地址http://www.zghlxwxcb.cn/news/detail-597440.html

到了這里,關(guān)于spring-cloud-gateway版本和springboot版本不匹配的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Spring-Cloud-Gateway如何自定義路由過濾器?

    遇到這么一個(gè)面試題:自定義網(wǎng)關(guān)過濾器實(shí)現(xiàn)把url中的請(qǐng)求參數(shù)放到http的header中傳遞給微服務(wù)。 我們知道網(wǎng)關(guān)的一個(gè)重要的作用就是路由轉(zhuǎn)發(fā),路由表的配置大概是這個(gè)樣子: 其中的filters就是配置的路由過濾器,Spring已經(jīng)內(nèi)置了31個(gè)路由的過濾器,這些過濾器都是 org.spring

    2024年02月16日
    瀏覽(24)
  • 芝法醬躺平攻略(14)——Nginx與Spring-Cloud-Gateway

    芝法醬躺平攻略(14)——Nginx與Spring-Cloud-Gateway

    上一章芝法醬躺平攻略(12)展望了微服務(wù)下常見的技術(shù)需求與常見解決方案,本期來講解第一部分,Nginx與SpringCloud-Gateway。 本章將實(shí)踐在nginx和spring-cloud-gateway的簡單使用。 首先,去官網(wǎng)查找最新穩(wěn)定版,把下載的nginx包放到DOWNLOAD文件夾下。 而后把該包解壓到SOFTWARE文件夾

    2024年02月07日
    瀏覽(32)
  • Spring-Cloud-Gateway修改請(qǐng)求(json,form帶文件請(qǐng)求)參數(shù),返回值參數(shù)

    新項(xiàng)目需要在getway統(tǒng)一做入?yún)?、出參加解密,記錄日志。記錄一下form,x-www-form-urlencoded , json 這幾種修改數(shù)據(jù)的方式。 gateway做攔截器是實(shí)現(xiàn)GlobalFilter接口,修改json方式網(wǎng)上有很多文章,后來又想研究研究能不能實(shí)現(xiàn)修改form-data參數(shù),以及文件請(qǐng)求,后者文章不多大部分是怎

    2024年02月16日
    瀏覽(28)
  • 【源碼】Spring Cloud Gateway 是在哪里匹配路由的?

    【源碼】Spring Cloud Gateway 是在哪里匹配路由的?

    我們知道,經(jīng)過網(wǎng)關(guān)的業(yè)務(wù)請(qǐng)求會(huì)被路由到后端真實(shí)的業(yè)務(wù)服務(wù)上去,假如我們使用的是Spring Cloud Gateway,那么你知道Spring Cloud Gateway是在哪一步去匹配路由的嗎? 源碼之下無秘密,讓我們一起從源碼中尋找答案。 Spring Cloud Gateway 的入口為 DispatcherHandler 的 handle 方法,其中主

    2023年04月24日
    瀏覽(26)
  • Gateway網(wǎng)關(guān)組件(在Spring Cloud整合Gateway(idea19版本))

    Gateway網(wǎng)關(guān)組件(在Spring Cloud整合Gateway(idea19版本))

    ????????Spring Cloud Gateway官網(wǎng):Spring Cloud Gateway ????????局域網(wǎng)中就有網(wǎng)關(guān)這個(gè)概念,局域網(wǎng)接收數(shù)據(jù)或發(fā)送數(shù)據(jù)都要通過網(wǎng)關(guān),比如使用VMware虛擬機(jī)軟件搭建虛擬機(jī)集群的時(shí)候,往往我們需要選擇IP段中的?個(gè)IP作為網(wǎng)關(guān)地址,網(wǎng)關(guān)可以對(duì)請(qǐng)求進(jìn)行控制,提升我們系統(tǒng)的安

    2024年02月16日
    瀏覽(26)
  • springboot整合spring cloud gateway搭建網(wǎng)關(guān)服務(wù)

    springboot整合spring cloud gateway搭建網(wǎng)關(guān)服務(wù)

    spring cloud netflix zuul、spring cloud gateway是最常見的微服務(wù)網(wǎng)關(guān),通過網(wǎng)關(guān),我們可以在請(qǐng)求到達(dá)后端指定服務(wù)之前/后端服務(wù)處理完業(yè)務(wù)響應(yīng)數(shù)據(jù)之后對(duì)響應(yīng)進(jìn)行對(duì)請(qǐng)求/響應(yīng)進(jìn)行處理。 比如常見的參數(shù)校驗(yàn)、接口鑒權(quán)等等,在后端服務(wù)的攔截器和過濾器能做的事在網(wǎng)關(guān)都可以做

    2024年02月07日
    瀏覽(26)
  • Spring Cloud 版本升級(jí)遇坑記:OpenFeignClient與Gateway的恩怨情仇

    Spring Cloud 版本升級(jí)遇坑記:OpenFeignClient與Gateway的恩怨情仇

    Spring Cloud 版本升級(jí)遇坑記:OpenFeignClient與Gateway的恩怨情仇 近日,在對(duì)項(xiàng)目中的 Spring Boot、Spring Cloud 以及 Spring Cloud Alibaba 進(jìn)行版本升級(jí)時(shí),遭遇了一個(gè)令人頭疼的問題:Spring Cloud Gateway 在運(yùn)行時(shí)一直卡住,無法正常啟動(dòng)。經(jīng)過一番折騰,終于找到了問題的癥結(jié)所在,下面就

    2024年02月03日
    瀏覽(21)
  • Spring Cloud 2022.x版本使用gateway和nacos實(shí)現(xiàn)動(dòng)態(tài)路由和負(fù)載均衡

    Spring Cloud 2022.x版本使用gateway和nacos實(shí)現(xiàn)動(dòng)態(tài)路由和負(fù)載均衡

    Spring Cloud Alibaba官方:https://sca.aliyun.com/zh-cn/ Spring Cloud官網(wǎng):https://spring.io/projects/spring-cloud Spring Cloud與Spring Cloud Alibaba版本對(duì)應(yīng)說明:https://sca.aliyun.com/zh-cn/docs/2022.0.0.0/overview/version-explain 下載地址:https://github.com/alibaba/nacos/releases 下載編譯壓縮并解壓:nacos-server-2.2.3.zip。 1.1、

    2024年02月11日
    瀏覽(50)
  • 【Spring Cloud Gateway】⑥SpringBoot3.x集成SpringDoc指南

    【Spring Cloud Gateway】⑥SpringBoot3.x集成SpringDoc指南

    Spring Cloud Gateway 使用 Netty 作為嵌入式服務(wù)器,并基于響應(yīng)式 Spring WebFlux 。做為微服務(wù)網(wǎng)關(guān),多個(gè)微服務(wù)把 API 掛在 Gateway 上,如果查看某個(gè) API 的 Swagger 還要去各個(gè)子微服務(wù)中去查看,就很不方便,如果能在 Gateway 上直接查看各個(gè)微服務(wù)的 API 文檔,會(huì)方便很多,本文以截至

    2024年02月14日
    瀏覽(23)
  • Spring Cloud 的版本和SpringBoot的版本

    Spring Cloud 的版本和SpringBoot的版本

    Spring Cloud 的版本和SpringBoot的版本,存在對(duì)應(yīng)關(guān)系。最新的SpringCloud版本(發(fā)布文章時(shí)為 2022.0.3 ),需要 SpringBoot(3.0.9) 的支持。 我使用的Spring Boot版本為 2.7 版本,所以無法使用 2022.0.3 版本的SpringCloud。我最終選擇的Spring Cloud 版本為 2021.0.8 . 每一個(gè)Spring Cloud版本后面,會(huì)有

    2024年02月07日
    瀏覽(19)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包