catalina.properties配置:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}[]
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
server.xml配置:
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^\`"<>"
useBodyEncodingForURI="true"
URIEncoding="UTF-8"/>