1.tomcat配置如下配置,可以在服务器压缩文件后传输客户端(js,css等)
<Connector port="8080" URIEncoding="UTF-8" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" compression="2" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/javascript,text/css,application/json,text/plain,application/javascript"/>
2.开发时引用extjs的bootstrap.js,发布时记得替换成精简的lib包ext-all.js. 3.引用模板在ProjectTpl/index.jsp 4.