该问题是升级tomcat版本后的一个错误,我已解决,该问题是因为tomcat最新版本对url进行了一个限制,降低tomcat版本和配置以下内容可解决问题
链接:https://www.jianshu.com/p/83735dc80603
解决办法(亲测)
在conf/catalina.properties中最后添加2行:
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
在conf/server.xml中的<Connector>节点中,添加2个属性:
relaxedPathChars="|{}[],"
relaxedQueryChars="|{}[],"