错误信息提示:org.apache.coyote.http11.Http11Processor.service 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解决办法:
在Tomcat的conf 的 catalina.properties 的配置文件中,修改最后一行,并放开注释:
#tomcat.util.http.parser.HttpParser.requestTargetAllow=| ,
改成
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
Tomcat部署项目后,点击链接后,报 RFC 7230 and RFC 3986
最新推荐文章于 2022-12-27 17:12:59 发布