项目之前使用的时候springgboot-2.6.13,gateway-3.1.4。然后安全检查的时候说
软件:spring-web(jar) 5.3.23
命中:["spring-web(jar) version less than 5.3.32"]
路径:/opt/gateway-0.0.1-SNAPSHOT.jar(BOOT-INF/lib/spring-web-5.3.23.jar)
解决办法就是要升级spring-web的版本
因为springboot-2.6.13已经不再维护了,直接从gateway的依赖里面去掉spring-web,然后重新引入spring-web-5.3.33会报一个错误
[ctor-http-nio-5] reactor.netty.http.server.HttpServer : [49b02120-1, L:/0:0:0:0:0:0:0:1:10215 - R:/0:0:0:0:0:0:0:1:57712]
java.lang.NoSuchMethodError: reactor.netty.http.server.HttpServerRequest.hostPort()I
at org.springframework.http.server.reactive.ReactorServerHttpRequest.resolveBaseUrl(ReactorServerHttpRequest.java:84) ~[spring-web-5.3.33.jar:5.3.33]
at org.springframework.http.server.reactive.ReactorServerHttpRequest.initUri(ReactorServerHttpRequest.java:79) ~[spring-web-5.3.33.jar:5.3.33]
at org.springframework.http.server.reactive.ReactorServerHttpRequest.<init&