SpringBoot 版本:2.2.1
默认集成Tomcat版本:9.0.27
SpringBoot项目,使用SpringBoot默认集成的Tomcat,请求后端 Controller 接口时抛出此异常。
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:468) ~[tomcat-embed-core-9.0.27.jar:9.0.27]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:292) ~[tomcat-em