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

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网站大全网站| 亚洲香蕉视频在线播放| 免费97久久人妻一区精品| 欧美日韩一区中文字幕| 中文字幕日韩精品亚洲精品| 18禁黄网站禁片免费视频| 亚洲综合av伊人久久| 亚洲日本韩国三级一区| 亚洲欧美一区二区三区三| 亚洲精品国产精品成人| 久久不卡高清免费av| 日本不卡不二三区在线看| 翔田千里精品久久一区二| 中文字幕成人资源网站| 亚洲三区久久婷婷激情| 欧美一区二区高清不卡| 小黄片视频免费在线播放| 九九视频在线观看免费观看| 色老头视频一区二区三区| 亚洲精品欧美综合第四区| 亚洲精品一区av在线观看| 韩国av高清在线观看| 精品人妻人伦一区二区三区| 国产亚洲精品麻豆一区二区| 91国内精品手机在线高清| 不卡av免费在线网址| 日本精品专区在线观看| 91麻豆精品一二三区在线| 哈昂~不要啊在线观看| 国产亚洲精品久久综合阿香| 日韩精品熟女一区二区三区| 人妻一少妇一区二区三区 |