真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

springboot集成springCloud中g(shù)ateway時(shí)啟動(dòng)報(bào)錯(cuò)怎么解決

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

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

在項(xiàng)目中引入springcloud中的gateway時(shí)報(bào)以下錯(cuò)誤

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.

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

解決方式:

在引入gateway時(shí)過(guò)濾掉上面兩個(gè)依賴

 
            org.springframework.cloud
            spring-cloud-starter-gateway
            
                
                    org.springframework.boot
                    spring-boot-starter-web
                
                
                    org.springframework.boot
                    spring-boot-starter-webflux
                
            
        

springboot整合gateway啟動(dòng)失敗

問(wèn)題:

springboot整合gateway啟動(dòng)失敗

***************************
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

這塊主要是版本兼容的問(wèn)題,

最初用的版本是:


            io.projectreactor.netty
            reactor-netty
            0.9.4.RELEASE
        

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

最后升高了版本改成了:


            io.projectreactor.netty
            reactor-netty
            0.9.14.RELEASE
        

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

到此,關(guān)于“springboot集成springCloud中g(shù)ateway時(shí)啟動(dòng)報(bào)錯(cuò)怎么解決”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!


文章名稱(chēng):springboot集成springCloud中g(shù)ateway時(shí)啟動(dòng)報(bào)錯(cuò)怎么解決
文章出自:http://weahome.cn/article/jeispg.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部