2021-12-01 20:48:18.023 INFO 49668 --- [nio-8081-exec-1] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
当测试或者用postman测试时发生这个问题时,接口对象请求url上将对象通过URLEncoder编码
String dataPara = URLEncoder.encode(data, "utf-8");