運行tomcat時,本以為成功了
?結果,突然出現(xiàn)這兩個錯誤
org.apache.coyote.http11.Http11Processor.service 解析 HTTP 請求 header 錯誤注意:HTTP請求解析錯誤的進一步發(fā)生將記錄在DEBUG級別。
?? ?java.lang.IllegalArgumentException: 在方法名稱中發(fā)現(xiàn)無效的字符串, HTTP 方法名必須是有效的符號.
?
?查了一早上,才解決,下面給大家說一下解決方法
解決:進入tomcat --> conf--> server.xml,找到此文件,用記事本打開。找到以下代碼,大概在69行
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="utf-8"
<!-- A "Connector" using the shared thread pool-->
修改為:文章來源:http://www.zghlxwxcb.cn/news/detail-514739.html
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="utf-8"
relaxedPathChars="|{}[],%"
relaxedQueryChars="|{}[],%"/>
<!-- A "Connector" using the shared thread pool-->
?然后就好啦??!大家快試試吧文章來源地址http://www.zghlxwxcb.cn/news/detail-514739.html
到了這里,關于org.apache.coyote.http11.Http11Processor.service 解析 HTTP 請求 header 錯誤注意:HTTP請求解析錯誤的進一步發(fā)生將記錄在DEBUG級別。的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!