tomcat升级后的问题.IllegalArgumentException

org.apache.coyote.http11.AbstractHttp11Processor process

信息: Error parsing HTTP request header

 Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:283)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1017)


看网上讲了很多问题,其实就一个解决方案:

打开tomcat的conf/catalina.properties文件,在文件的最后一行添加:

tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}



屡试不爽

猜你喜欢

转载自blog.csdn.net/younglee16/article/details/80066320