zl程序教程

您现在的位置是:首页 >  其他

当前栏目

The valid characters are defined in RFC 7230 and RFC 3986详解编程语言

编程语言 详解 in The and are valid defined
2023-06-13 09:11:48 时间
问题原因

同事在url中将json数据作为一个get请求的参数导致。tomcat版本高会出现这个问题,原因是高版本加上了http的验证。

server.xml中加入relaxedPathChars和relaxedQueryChars参数

 Connector port="8084" protocol="HTTP/1.1" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^ #x5c; #x60; quot; " useBodyEncodingForURI="true" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/ 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17765.html

cjavaxml