1.对于url中文乱码问题:
(有时进行url编码也不能能够解决,找到server.xml添加URIEncoding="UTF-8",就可以了)
tomcat配置编码:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
2.开启tomcat的gzip压缩配置,压缩页面访问资源的空间。 去除页面标签格式占用空间,比如空格等。
<Connector
port="80"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
compression="on"
compressionMinSize="2048"
noCompressionUserAgents="gozilla,traviata"
compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain,application/xhtml+xml,application/xml,application/json,application/javascript"
/>