1.有效解決The valid characters are defined in RFC 7230 and RFC 3986問題
配置tomcat/conf下的catalina.properties
添加或者修改:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
同時添加server.xml中的connector
relaxedPathChars=""><[]{}|\^"
relaxedQueryChars=""><[]{}|\^"