配置tomcat跨域 配置server.xml文件 主要插入relaxedPathChars="|{}[]," relaxedQueryChars="|{}[]," <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" relaxedPathChars="|{}[]," relaxedQueryChars="|{}[]," redirectPort="8443" />