tomcat通过url传参报错:The valid characters are defined in RFC 7230 and RFC3986

解决:Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC3986

 

处理方法

.../conf/catalina.properties中,找到最后注释掉的一行 #tomcat.util.http.parser.HttpParser.requestTargetAllow=|  ,改成tomcat.util.http.parser.HttpParser.requestTargetAllow=|{},表示把{}放行

tomcat通过url传参报错:The valid characters are defined in RFC 7230 and RFC3986_第1张图片

参考

https://www.cnblogs.com/wsygdb/p/7661220.html

https://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html(官网各配置项说明)

 

 

 

你可能感兴趣的:(tomcat)