Tomcat部署项目后,点击链接后,报 RFC 7230 and RFC 3986

错误信息提示: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 3986Tomcat部署项目后,点击链接后,报 RFC 7230 and RFC 3986_第1张图片解决办法:
在Tomcat的conf 的 catalina.properties 的配置文件中,修改最后一行,并放开注释:
#tomcat.util.http.parser.HttpParser.requestTargetAllow=|  ,
改成
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}

你可能感兴趣的:(后端)