java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
request请求中,请求参数为param={json}
使用tomcat版本为apache-tomcat-8.0.53、apache-tomcat-7.0.91
都报相同的问题
最后通过修改conf/catalina.properties,在文件的最后,将加入下面的内容:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
tomcat默认注释了tomcat.util.http.parser.HttpParser.requestTargetAllow=|,打开注释,后面加入{}