首页 > 技术文章 > 关于toncat的Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC3986

notably 2019-04-05 14:23 原文

首先这个错误通常的产生原因, 是tomcat的确收到了格式不正确的请求参数,根据tomcat的版本支持的解析,tomcat抛出这个错误。

但是还有一种就是前台发送的请求方式由 get发送导致本应post发送的json数据直接跟在url后面,是的tomcat解析失败。

推荐阅读