Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of starting error report when springboot integrates gateway in springCloud

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "how to solve the error report when starting the gateway in the springboot integration springCloud". In the daily operation, I believe that many people have doubts about how to start the error report when they start the error report in the springboot integration springCloud. The editor consulted all kinds of materials and sorted out a simple and easy-to-use operation method. I hope it will be helpful to answer the doubt of "how to solve the error report when starting the gateway in the springboot integration springCloud". Next, please follow the editor to study!

Introduce the following error of gateway Times in springcloud into the project

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.

This is due to dependency conflicts, spring-cloud-starter-gateway conflicts with spring-boot-starter-web and spring-boot-starter-webflux dependencies

Solution:

Filter out the above two dependencies when introducing gateway

Failed to start org.springframework.cloud spring-cloud-starter-gateway org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-webflux springboot integration gateway

Question:

Failed to start springboot integration 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:

JarRlfileGear CsersUnique administrators. M2Unix repositoryUnix IoPositoryUnix projectreactorUnix nettyplesReactorMurnettyAction0.9.1.RELEASEUniverse nettylemet 0.9.1.RELEASE.jarose.jartoothplicedreactorLactorLignettyUniversConnectionProvider.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 transport 55875", "socket"

Process finished with exit code 1

This is mainly a question of version compatibility.

The original version was: io.projectreactor.netty reactor-netty 0.9.4.RELEASE

There are plenty of people on the Internet that need to lower this version, but I can't even lower it.

Finally, the version was upgraded and changed to: io.projectreactor.netty reactor-netty 0.9.14.RELEASE

The springboot version in this project is 2.3.1. According to the needs of your own project, take a look at the problems between the various versions of your own project.

At this point, the study on "how to solve the error when springboot integrates gateway in springCloud" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report