Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
568 views
in Technique[技术] by (71.8m points)

After upgrading to spring boot 2.4.2 version getting getting java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.mapConnect

After upgrading to spring boot 2.4.2 version - Webclient bean creation failing, in 2.3.8.RELEASE version same code worked.

Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.reactive.function.client.WebClient]: Factory method 'personWebClient' threw exception; nested exception is java.lang.NoSuchMethodError: reactor.netty.http.client.HttpClient.mapConnect(Ljava/util/function/BiFunction;)Lreactor/netty/http/client/HttpClient;

Below are the screenshot of dependency tree for both version

Dependency Tree for 2.3.8 version

Dependency Tree for 2.4.2 version

question from:https://stackoverflow.com/questions/65913639/after-upgrading-to-spring-boot-2-4-2-version-getting-getting-java-lang-nosuchmet

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...