欧美一级特黄大片做受成人-亚洲成人一区二区电影-激情熟女一区二区三区-日韩专区欧美专区国产专区

springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決

這篇文章主要介紹“springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決”,在日常操作中,相信很多人在springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價值的長期合作伙伴,公司提供的服務(wù)項目有:國際域名空間、虛擬空間、營銷軟件、網(wǎng)站建設(shè)、東蘭網(wǎng)站維護、網(wǎng)站推廣。

在項目中引入springcloud中的gateway時報以下錯誤

Description:

Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration
required a bean of type "org.springframework.http.codec.ServerCodecConfigurer" that could not be found.

Action:
Consider defining a bean of type "org.springframework.http.codec.ServerCodecConfigurer" in your configuration.

這個是由于依賴沖突,spring-cloud-starter-gateway與spring-boot-starter-web和spring-boot-starter-webflux依賴沖突

解決方式:

在引入gateway時過濾掉上面兩個依賴

 <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-gateway</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-web</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-webflux</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

springboot整合gateway啟動失敗

問題:

springboot整合gateway啟動失敗

***************************
APPLICATION FAILED TO START
***************************
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.gatewayHttpClient(GatewayAutoConfiguration.java:622)
The following method did not exist:
reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
The method"s class, reactor.netty.resources.ConnectionProvider, is available from the following locations:
jar:file:/C:/Users/Administrator/.m2/repository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar!/reactor/netty/resources/ConnectionProvider.class
It was loaded from the following location:
file:/C:/Users/Administrator/.m2/repository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider
Disconnected from the target VM, address: "127.0.0.1:55875", transport: "socket"
Process finished with exit code 1

這塊主要是版本兼容的問題,

最初用的版本是:

<dependency>
            <groupId>io.projectreactor.netty</groupId>
            <artifactId>reactor-netty</artifactId>
            <version>0.9.4.RELEASE</version>
        </dependency>

網(wǎng)上有的是需要把這個版本降低,我這是降低了也不行

最后升高了版本改成了:

<dependency>
            <groupId>io.projectreactor.netty</groupId>
            <artifactId>reactor-netty</artifactId>
            <version>0.9.14.RELEASE</version>
        </dependency>

本項目里springboot版本為:2.3.1,根據(jù)自己項目需要吧,看一下自己項目中各個版本之間的問題

到此,關(guān)于“springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識,請繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會繼續(xù)努力為大家?guī)砀鄬嵱玫奈恼拢?/p>

分享名稱:springboot集成springCloud中g(shù)ateway時啟動報錯怎么解決
文章起源:http://aaarwkj.com/article36/jeispg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供做網(wǎng)站手機網(wǎng)站建設(shè)、Google、App開發(fā)、網(wǎng)站設(shè)計公司網(wǎng)站維護

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)
丰满人妻毛片一区二区三区| 人妻中文字幕在线看粉嫩| 欧美夫妻成人性生活视频| 免费看真人性生活视频| 人妻av天堂综合一区| 午夜一区二区精品视频国产| 亚洲成人日韩在线播放| 99精品午夜福利在线| 天天色天天色天天色综合网| 日韩一级免费高清黄片| 中文字幕在线一区国产精品| 少妇人妻精品一区二区三| 国产又粗又长在线视频| 丰满人妻少妇精品一区二区三区| 亚洲成人午夜激情的三级网| 久久久亚洲成人国产av| 久久久亚洲熟妇熟女一区二区| 日韩版色视频在线观看| 国产av一区二区三区最新精品| 亚洲国产精品va在线香蕉| 日本一区二区精美视频| 国产高清大片一级黄色| 91精品欧美综合在线| 亚洲国产熟女一区二区三| 亚洲精品福利在线视频| 亚欧成人永久免费视频| 亚洲精品网站国产高清| 四虎免费在线视频观看| 亚洲精品一区二区日本| 色花堂国产精品第二页| 最新欧美精品一区二区| 九九九热精品视频在线观看| 免费无遮挡18禁视频| 99久在线观看精品视频| 国产欧美高清在线观看视频| 亚洲三级黄片免费播放| 免费在线观看福利av| av剧情网址在线观看| 最近更新中文字幕不卡在线| 禁区正片免费看完整国产 | 色综合av男人的天堂|