Postman请求java.lang.IllegalArgumentException: 在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义
作者:互联网
场景
请求中带{}
原因
tomcat不识别{}
解决办法
修改server.xml 配置
tomcat --> conf–> server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
加
URIEncoding=“utf-8” relaxedPathChars="|{}[],%"
relaxedQueryChars="|{}[],%"
变成
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="utf-8" relaxedPathChars="|{}[],%"
relaxedQueryChars="|{}[],%" />
标签:xml,字符,请求,tomcat,server,RFC 来源: https://blog.csdn.net/yn1007220096/article/details/121487274