
image.png
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
at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:189)
翻譯:注意:HTTP頭解析錯(cuò)誤的進(jìn)一步發(fā)生將在調(diào)試級別記錄。
java.galanterguillengeption:在請求目標(biāo)中發(fā)現(xiàn)無效字符。有效字符在RFC 7230和RFC 3986中定義
意思在你的傳參中有無效的字符,是需要轉(zhuǎn)義的
我當(dāng)時(shí)問題如下:

image.png
在filePath中有斜杠,所以參數(shù)傳不過去
在傳參前進(jìn)行編碼 再傳,問題解決
var filePath = json.filePath;
var s= encodeURIComponent(filePath);
var targeturl = "${pageContext.request.contextPath}/toCheckDoc.do?fileName="+s;