报错信息如下:
1 D:\topbandSoft\java\jdk1.8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=64562 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:G:\soft\IDEA\IntelliJ IDEA 2018.2.5\lib\idea_rt.jar=64563:G:\soft\IDEA\IntelliJ IDEA 2018.2.5\bin" -Dfile.encoding=UTF-8 -classpath D:\topbandSoft\java\jdk1.8\jre\lib\charsets.jar;D:\topbandSoft\java\jdk1.8\jre\lib\deploy.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\access-bridge-64.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\cldrdata.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\dnsns.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\jaccess.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\jfxrt.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\localedata.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\nashorn.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunec.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunjce_provider.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunmscapi.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunpkcs11.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\zipfs.jar;D:\topbandSoft\java\jdk1.8\jre\lib\javaws.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jce.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jfr.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jfxswt.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jsse.jar;D:\topbandSoft\java\jdk1.8\jre\lib\management-agent.jar;D:\topbandSoft\java\jdk1.8\jre\lib\plugin.jar;D:\topbandSoft\java\jdk1.8\jre\lib\resources.jar;D:\topbandSoft\java\jdk1.8\jre\lib\rt.jar;E:\springcloud-alibaba\api-gateway\target\classes;E:\localRepository\org\springframework\boot\spring-boot-starter\2.2.1.RELEASE\spring-boot-starter-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot\2.2.1.RELEASE\spring-boot-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-context\5.2.1.RELEASE\spring-context-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-aop\5.2.1.RELEASE\spring-aop-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-beans\5.2.1.RELEASE\spring-beans-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-expression\5.2.1.RELEASE\spring-expression-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-autoconfigure\2.2.1.RELEASE\spring-boot-autoconfigure-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-logging\2.2.1.RELEASE\spring-boot-starter-logging-2.2.1.RELEASE.jar;E:\localRepository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\localRepository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\localRepository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;E:\localRepository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;E:\localRepository\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;E:\localRepository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\localRepository\org\springframework\spring-core\5.2.1.RELEASE\spring-core-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-jcl\5.2.1.RELEASE\spring-jcl-5.2.1.RELEASE.jar;E:\localRepository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-gateway\2.2.5.RELEASE\spring-cloud-starter-gateway-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter\2.2.5.RELEASE\spring-cloud-starter-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;E:\localRepository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;E:\localRepository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;E:\localRepository\org\springframework\cloud\spring-cloud-gateway-core\2.2.5.RELEASE\spring-cloud-gateway-core-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-validation\2.2.1.RELEASE\spring-boot-starter-validation-2.2.1.RELEASE.jar;E:\localRepository\jakarta\validation\jakarta.validation-api\2.0.1\jakarta.validation-api-2.0.1.jar;E:\localRepository\org\apache\tomcat\embed\tomcat-embed-el\9.0.27\tomcat-embed-el-9.0.27.jar;E:\localRepository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;E:\localRepository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;E:\localRepository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;E:\localRepository\io\projectreactor\addons\reactor-extra\3.3.0.RELEASE\reactor-extra-3.3.0.RELEASE.jar;E:\localRepository\io\projectreactor\reactor-core\3.3.0.RELEASE\reactor-core-3.3.0.RELEASE.jar;E:\localRepository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-webflux\2.2.1.RELEASE\spring-boot-starter-webflux-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-json\2.2.1.RELEASE\spring-boot-starter-json-2.2.1.RELEASE.jar;E:\localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.0\jackson-datatype-jdk8-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.0\jackson-datatype-jsr310-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.0\jackson-module-parameter-names-2.10.0.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-reactor-netty\2.2.1.RELEASE\spring-boot-starter-reactor-netty-2.2.1.RELEASE.jar;E:\localRepository\io\projectreactor\netty\reactor-netty\0.9.1.RELEASE\reactor-netty-0.9.1.RELEASE.jar;E:\localRepository\io\netty\netty-codec-http\4.1.43.Final\netty-codec-http-4.1.43.Final.jar;E:\localRepository\io\netty\netty-common\4.1.43.Final\netty-common-4.1.43.Final.jar;E:\localRepository\io\netty\netty-buffer\4.1.43.Final\netty-buffer-4.1.43.Final.jar;E:\localRepository\io\netty\netty-transport\4.1.43.Final\netty-transport-4.1.43.Final.jar;E:\localRepository\io\netty\netty-resolver\4.1.43.Final\netty-resolver-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec\4.1.43.Final\netty-codec-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec-http2\4.1.43.Final\netty-codec-http2-4.1.43.Final.jar;E:\localRepository\io\netty\netty-handler\4.1.43.Final\netty-handler-4.1.43.Final.jar;E:\localRepository\io\netty\netty-handler-proxy\4.1.43.Final\netty-handler-proxy-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec-socks\4.1.43.Final\netty-codec-socks-4.1.43.Final.jar;E:\localRepository\io\netty\netty-transport-native-epoll\4.1.43.Final\netty-transport-native-epoll-4.1.43.Final-linux-x86_64.jar;E:\localRepository\io\netty\netty-transport-native-unix-common\4.1.43.Final\netty-transport-native-unix-common-4.1.43.Final.jar;E:\localRepository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;E:\localRepository\org\springframework\spring-web\5.2.1.RELEASE\spring-web-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-webflux\5.2.1.RELEASE\spring-webflux-5.2.1.RELEASE.jar;E:\localRepository\org\synchronoss\cloud\nio-multipart-parser\1.1.0\nio-multipart-parser-1.1.0.jar;E:\localRepository\org\synchronoss\cloud\nio-stream-storage\1.1.3\nio-stream-storage-1.1.3.jar;E:\localRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;E:\localRepository\com\alibaba\nacos\nacos-client\1.2.1\nacos-client-1.2.1.jar;E:\localRepository\com\alibaba\nacos\nacos-common\1.2.1\nacos-common-1.2.1.jar;E:\localRepository\commons-io\commons-io\2.2\commons-io-2.2.jar;E:\localRepository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;E:\localRepository\com\alibaba\nacos\nacos-api\1.2.1\nacos-api-1.2.1.jar;E:\localRepository\com\alibaba\fastjson\1.2.58\fastjson-1.2.58.jar;E:\localRepository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;E:\localRepository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;E:\localRepository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;E:\localRepository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;E:\localRepository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;E:\localRepository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;E:\localRepository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;E:\localRepository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-core\2.10.0\jackson-core-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-databind\2.10.0\jackson-databind-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-annotations\2.10.0\jackson-annotations-2.10.0.jar;E:\localRepository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;E:\localRepository\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;E:\localRepository\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\security\spring-security-crypto\5.2.1.RELEASE\spring-security-crypto-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-context\2.2.5.RELEASE\spring-cloud-context-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.5.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.5.RELEASE\spring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.5.RELEASE\spring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.5.RELEASE\spring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:\localRepository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\localRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\localRepository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\localRepository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\localRepository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\localRepository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\localRepository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\localRepository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\localRepository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\localRepository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\localRepository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\localRepository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\localRepository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\localRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\localRepository\org\apache\httpcomponents\httpclient\4.5.10\httpclient-4.5.10.jar;E:\localRepository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;E:\localRepository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\localRepository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\localRepository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\localRepository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\localRepository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\localRepository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\localRepository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\localRepository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\localRepository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\localRepository\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar com.drawnblue.apigateway.ApiGatewayApplication
2
3 . ____ _ __ _ _
4 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
5 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
6 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
7 ' |____| .__|_| |_|_| |_\__, | / / / /
8 =========|_|==============|___/=/_/_/_/
9 :: Spring Boot :: (v2.2.1.RELEASE)
10
11 2021-02-19 17:30:08.671 INFO 12548 --- [ main] c.d.apigateway.ApiGatewayApplication : No active profile set, falling back to default profiles: default
12 2021-02-19 17:30:09.072 INFO 12548 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=9acf6bc0-0b31-33ee-889b-f9ecef33c201
13 2021-02-19 17:30:09.108 INFO 12548 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
14 2021-02-19 17:30:09.109 INFO 12548 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
15 2021-02-19 17:30:09.113 INFO 12548 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16 2021-02-19 17:30:09.199 WARN 12548 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
17 2021-02-19 17:30:09.200 INFO 12548 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
18 2021-02-19 17:30:09.202 WARN 12548 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
19 2021-02-19 17:30:09.202 INFO 12548 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
20 2021-02-19 17:30:09.890 WARN 12548 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gatewayHttpClient' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [reactor.netty.http.client.HttpClient]: Factory method 'gatewayHttpClient' threw exception; nested exception is java.lang.NoSuchMethodError: reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
21 2021-02-19 17:30:09.907 INFO 12548 --- [ main] ConditionEvaluationReportLoggingListener :
22
23 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
24 2021-02-19 17:30:09.912 ERROR 12548 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
25
26 ***************************
27 APPLICATION FAILED TO START
28 ***************************
29
30 Description:
31
32 An attempt was made to call a method that does not exist. The attempt was made from the following location:
33
34 org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.gatewayHttpClient(GatewayAutoConfiguration.java:622)
35
36 The following method did not exist:
37
38 reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;
39
40 The method's class, reactor.netty.resources.ConnectionProvider, is available from the following locations:
41
42 jar:file:/E:/localRepository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar!/reactor/netty/resources/ConnectionProvider.class
43
44 It was loaded from the following location:
45
46 file:/E:/localRepository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar
47
48
49 Action:
50
51 Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider
52
53
54 Process finished with exit code 1
添加
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty</artifactId>
<version>0.9.8.RELEASE</version>
</dependency>
报错如下:
1 D:\topbandSoft\java\jdk1.8\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=64813 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true "-javaagent:G:\soft\IDEA\IntelliJ IDEA 2018.2.5\lib\idea_rt.jar=64814:G:\soft\IDEA\IntelliJ IDEA 2018.2.5\bin" -Dfile.encoding=UTF-8 -classpath D:\topbandSoft\java\jdk1.8\jre\lib\charsets.jar;D:\topbandSoft\java\jdk1.8\jre\lib\deploy.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\access-bridge-64.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\cldrdata.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\dnsns.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\jaccess.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\jfxrt.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\localedata.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\nashorn.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunec.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunjce_provider.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunmscapi.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\sunpkcs11.jar;D:\topbandSoft\java\jdk1.8\jre\lib\ext\zipfs.jar;D:\topbandSoft\java\jdk1.8\jre\lib\javaws.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jce.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jfr.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jfxswt.jar;D:\topbandSoft\java\jdk1.8\jre\lib\jsse.jar;D:\topbandSoft\java\jdk1.8\jre\lib\management-agent.jar;D:\topbandSoft\java\jdk1.8\jre\lib\plugin.jar;D:\topbandSoft\java\jdk1.8\jre\lib\resources.jar;D:\topbandSoft\java\jdk1.8\jre\lib\rt.jar;E:\springcloud-alibaba\api-gateway\target\classes;E:\localRepository\org\springframework\boot\spring-boot-starter\2.2.1.RELEASE\spring-boot-starter-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot\2.2.1.RELEASE\spring-boot-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-context\5.2.1.RELEASE\spring-context-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-aop\5.2.1.RELEASE\spring-aop-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-beans\5.2.1.RELEASE\spring-beans-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-expression\5.2.1.RELEASE\spring-expression-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-autoconfigure\2.2.1.RELEASE\spring-boot-autoconfigure-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-logging\2.2.1.RELEASE\spring-boot-starter-logging-2.2.1.RELEASE.jar;E:\localRepository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;E:\localRepository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;E:\localRepository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;E:\localRepository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;E:\localRepository\org\slf4j\jul-to-slf4j\1.7.29\jul-to-slf4j-1.7.29.jar;E:\localRepository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;E:\localRepository\org\springframework\spring-core\5.2.1.RELEASE\spring-core-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-jcl\5.2.1.RELEASE\spring-jcl-5.2.1.RELEASE.jar;E:\localRepository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-gateway\2.2.5.RELEASE\spring-cloud-starter-gateway-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter\2.2.5.RELEASE\spring-cloud-starter-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;E:\localRepository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;E:\localRepository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;E:\localRepository\org\springframework\cloud\spring-cloud-gateway-core\2.2.5.RELEASE\spring-cloud-gateway-core-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-validation\2.2.1.RELEASE\spring-boot-starter-validation-2.2.1.RELEASE.jar;E:\localRepository\jakarta\validation\jakarta.validation-api\2.0.1\jakarta.validation-api-2.0.1.jar;E:\localRepository\org\apache\tomcat\embed\tomcat-embed-el\9.0.27\tomcat-embed-el-9.0.27.jar;E:\localRepository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;E:\localRepository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;E:\localRepository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;E:\localRepository\io\projectreactor\addons\reactor-extra\3.3.0.RELEASE\reactor-extra-3.3.0.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-webflux\2.2.1.RELEASE\spring-boot-starter-webflux-2.2.1.RELEASE.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-json\2.2.1.RELEASE\spring-boot-starter-json-2.2.1.RELEASE.jar;E:\localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.0\jackson-datatype-jdk8-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.0\jackson-datatype-jsr310-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.0\jackson-module-parameter-names-2.10.0.jar;E:\localRepository\org\springframework\boot\spring-boot-starter-reactor-netty\2.2.1.RELEASE\spring-boot-starter-reactor-netty-2.2.1.RELEASE.jar;E:\localRepository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;E:\localRepository\org\springframework\spring-web\5.2.1.RELEASE\spring-web-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\spring-webflux\5.2.1.RELEASE\spring-webflux-5.2.1.RELEASE.jar;E:\localRepository\org\synchronoss\cloud\nio-multipart-parser\1.1.0\nio-multipart-parser-1.1.0.jar;E:\localRepository\org\synchronoss\cloud\nio-stream-storage\1.1.3\nio-stream-storage-1.1.3.jar;E:\localRepository\io\projectreactor\netty\reactor-netty\0.9.8.RELEASE\reactor-netty-0.9.8.RELEASE.jar;E:\localRepository\io\netty\netty-codec-http\4.1.43.Final\netty-codec-http-4.1.43.Final.jar;E:\localRepository\io\netty\netty-common\4.1.43.Final\netty-common-4.1.43.Final.jar;E:\localRepository\io\netty\netty-buffer\4.1.43.Final\netty-buffer-4.1.43.Final.jar;E:\localRepository\io\netty\netty-transport\4.1.43.Final\netty-transport-4.1.43.Final.jar;E:\localRepository\io\netty\netty-resolver\4.1.43.Final\netty-resolver-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec\4.1.43.Final\netty-codec-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec-http2\4.1.43.Final\netty-codec-http2-4.1.43.Final.jar;E:\localRepository\io\netty\netty-handler\4.1.43.Final\netty-handler-4.1.43.Final.jar;E:\localRepository\io\netty\netty-handler-proxy\4.1.43.Final\netty-handler-proxy-4.1.43.Final.jar;E:\localRepository\io\netty\netty-codec-socks\4.1.43.Final\netty-codec-socks-4.1.43.Final.jar;E:\localRepository\io\netty\netty-transport-native-epoll\4.1.43.Final\netty-transport-native-epoll-4.1.43.Final-linux-x86_64.jar;E:\localRepository\io\netty\netty-transport-native-unix-common\4.1.43.Final\netty-transport-native-unix-common-4.1.43.Final.jar;E:\localRepository\io\projectreactor\reactor-core\3.3.0.RELEASE\reactor-core-3.3.0.RELEASE.jar;E:\localRepository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;E:\localRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;E:\localRepository\com\alibaba\nacos\nacos-client\1.2.1\nacos-client-1.2.1.jar;E:\localRepository\com\alibaba\nacos\nacos-common\1.2.1\nacos-common-1.2.1.jar;E:\localRepository\commons-io\commons-io\2.2\commons-io-2.2.jar;E:\localRepository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;E:\localRepository\com\alibaba\nacos\nacos-api\1.2.1\nacos-api-1.2.1.jar;E:\localRepository\com\alibaba\fastjson\1.2.58\fastjson-1.2.58.jar;E:\localRepository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;E:\localRepository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;E:\localRepository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;E:\localRepository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;E:\localRepository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;E:\localRepository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;E:\localRepository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;E:\localRepository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-core\2.10.0\jackson-core-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-databind\2.10.0\jackson-databind-2.10.0.jar;E:\localRepository\com\fasterxml\jackson\core\jackson-annotations\2.10.0\jackson-annotations-2.10.0.jar;E:\localRepository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;E:\localRepository\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;E:\localRepository\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\security\spring-security-crypto\5.2.1.RELEASE\spring-security-crypto-5.2.1.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-context\2.2.5.RELEASE\spring-cloud-context-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.5.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.5.RELEASE\spring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.5.RELEASE\spring-cloud-netflix-archaius-2.2.5.RELEASE.jar;E:\localRepository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.5.RELEASE\spring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;E:\localRepository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;E:\localRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;E:\localRepository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;E:\localRepository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;E:\localRepository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;E:\localRepository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;E:\localRepository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;E:\localRepository\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;E:\localRepository\javax\inject\javax.inject\1\javax.inject-1.jar;E:\localRepository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;E:\localRepository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;E:\localRepository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;E:\localRepository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;E:\localRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;E:\localRepository\org\apache\httpcomponents\httpclient\4.5.10\httpclient-4.5.10.jar;E:\localRepository\org\apache\httpcomponents\httpcore\4.4.12\httpcore-4.4.12.jar;E:\localRepository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;E:\localRepository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;E:\localRepository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;E:\localRepository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;E:\localRepository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;E:\localRepository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;E:\localRepository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;E:\localRepository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;E:\localRepository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;E:\localRepository\org\slf4j\slf4j-api\1.7.29\slf4j-api-1.7.29.jar com.drawnblue.apigateway.ApiGatewayApplication
2
3 . ____ _ __ _ _
4 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
5 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
6 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
7 ' |____| .__|_| |_|_| |_\__, | / / / /
8 =========|_|==============|___/=/_/_/_/
9 :: Spring Boot :: (v2.2.1.RELEASE)
10
11 2021-02-19 17:32:11.328 INFO 9048 --- [ main] c.d.apigateway.ApiGatewayApplication : No active profile set, falling back to default profiles: default
12 2021-02-19 17:32:11.699 INFO 9048 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=9acf6bc0-0b31-33ee-889b-f9ecef33c201
13 2021-02-19 17:32:11.733 INFO 9048 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
14 2021-02-19 17:32:11.734 INFO 9048 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactiveLoadBalancerConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
15 2021-02-19 17:32:11.737 INFO 9048 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
16 2021-02-19 17:32:11.816 WARN 9048 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
17 2021-02-19 17:32:11.816 INFO 9048 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
18 2021-02-19 17:32:11.819 WARN 9048 --- [ main] c.n.c.sources.URLConfigurationSource : No URLs will be polled as dynamic configuration sources.
19 2021-02-19 17:32:11.819 INFO 9048 --- [ main] c.n.c.sources.URLConfigurationSource : To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
20 2021-02-19 17:32:12.696 WARN 9048 --- [ main] onfigReactiveWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reactorNettyWebSocketClient' defined in class path resource [org/springframework/cloud/gateway/config/GatewayAutoConfiguration$NettyConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient]: Factory method 'reactorNettyWebSocketClient' threw exception; nested exception is java.lang.NoSuchMethodError: org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
21 2021-02-19 17:32:12.711 INFO 9048 --- [ main] ConditionEvaluationReportLoggingListener :
22
23 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
24 2021-02-19 17:32:12.716 ERROR 9048 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
25
26 ***************************
27 APPLICATION FAILED TO START
28 ***************************
29
30 Description:
31
32 An attempt was made to call a method that does not exist. The attempt was made from the following location:
33
34 org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.reactorNettyWebSocketClient(GatewayAutoConfiguration.java:748)
35
36 The following method did not exist:
37
38 org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
39
40 The method's class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient, is available from the following locations:
41
42 jar:file:/E:/localRepository/org/springframework/spring-webflux/5.2.1.RELEASE/spring-webflux-5.2.1.RELEASE.jar!/org/springframework/web/reactive/socket/client/ReactorNettyWebSocketClient.class
43
44 It was loaded from the following location:
45
46 file:/E:/localRepository/org/springframework/spring-webflux/5.2.1.RELEASE/spring-webflux-5.2.1.RELEASE.jar
47
48
49 Action:
50
51 Correct the classpath of your application so that it contains a single, compatible version of org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient
52
53
54 Process finished with exit code 1
添加如下依赖:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflux</artifactId>
<version>5.2.7.RELEASE</version>
</dependency>
ok