关于toncat的Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC3986

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

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

猜你喜欢

转载自www.cnblogs.com/notably/p/10658639.html
今日推荐