问题原因

同事在url中将json数据作为一个get请求的参数导致。tomcat版本高会出现这个问题,原因是高版本加上了http的验证。

解决办法

server.xml中加入relaxedPathChars和relaxedQueryChars参数

<Connector port="8084" protocol="HTTP/1.1" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^&#x5c;&#x60;&quot;&lt;&gt;" useBodyEncodingForURI="true" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>

相关文章:

  • 2021-11-09
  • 2021-11-09
  • 2021-12-05
  • 2022-12-23
  • 2021-04-30
  • 2021-10-05
  • 2021-08-04
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2021-04-03
  • 2022-02-11
  • 2022-01-04
相关资源
相似解决方案