- 博客(0)
- 资源 (1)
- 收藏
- 关注
tomcat8get请求url格式问题
异常:Invalid character found in the request target. The valid characters are defined in RFC 3986;原因:由于tomcat的新版本增加了一个新特性,就是严格按照 RFC 3986规范进行访问解析,而 RFC 3986规范定义了Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~4个特殊字符以及所有保留字符(RFC3986中指定了以下字符为保留字符:! * ’ ( ) ; : @ & = + $ , / ? # [ ])。解决方式进入tomcat的server配置中进行添加参数配置 <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
URIEncoding="UTF-8"
relaxedPathChars="[]{}|\\^" relaxedQueryChars="[]{}|\\^" />
2019-01-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人