tomcat通过url传参报错: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=|{},表示把{}放行

参考

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

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

发布了25 篇原创文章 · 获赞 5 · 访问量 1407

猜你喜欢

转载自blog.csdn.net/weixin_42245375/article/details/103542245