1、在tomca/conf/service文件加函数
- tomcat/conf/server.xml文件
relaxedPathChars="|{}[],"
relaxedQueryChars="|{}[],"
URIEncoding="UTF-8"
- tomcat/conf/catalina.properties文件
tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
2、在tomcat/conf/logging.properties文件改成GBK