`
- 浏览:
32512 次
-
The valid characters are defined in RFC 7230 and RFC 3986
关于启动tomcat后,运行时报错误如下java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
报错原因:tomcat8.0版本以上的,对请求参数头部进行了编码格式校验
解决方案如下:
第一种方案:把 tomcat的版本降低到 8.0以下;
第二种方案:
打开tomcat的conf目录的catalina.properties文件,并在此文件的最后一行加上如下:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
再重启 tomcat即可
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
The valid characters are defined in RFC 7230 and RFC 3986 错误 问题出在 高版本的tomcat会对请求头进行过滤 我的项目使用的springboot版本是2.2.5版本, 内置的tomcat 版本是9.0.31。 解决方法①(推荐) 新增...
1.情景展示 ... The valid characters are defined in RFC 7230 and RFC 3986 at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:283) at org.a
中国移动面试题
Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC3986。 tomcat版本升级后,请求中包含的特殊字符或中文会引起此报错。 更换此tomcat可解决。
由于用其它版本,请求参数带中文,报错:The valid characters are defined in RFC 7230 and RFC 3986 解决办法:下载此版本
可用于解决高版本tomcat部署后访问400问题m Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986 更换低版本的Tomcat来规避这种问题。
适用于Windows操作系统,32位的,tomcat7,具体版本为:61,主要用于解决The valid characters are defined in RFC 7230 and RFC 3986的问题。其它解决方案见:...
这是本人自己写的,里面包括传参与不传参的标签,很方便,步骤很详细。所有就上传上来了。
The valid characters are defined in RFC 3986;原因:由于tomcat的新版本增加了一个新特性,就是严格按照 RFC 3986规范进行访问解析,而 RFC 3986规范定义了Url中只允许包含英文字母(a-zA-Z)、数字(0-9)、-_.~...
Instructions on how to download and install the JavaMail API are contained in the course. In addition, you will need a development environment such as the JDK 1.1.6+ or the Java 2 Platform, Standard...
14.5.2. Creating the Filter and Validator Processor 14.5.3. Retrieving Validated Fields and other Reports 14.5.3.1. Querying if the input is valid 14.5.3.2. Getting Invalid, Missing, or Unknown ...