JBoss AS7 支持 gzip 版本 JBOSS7.1 修改$JBOSS_HOME/standalone/configuration/standalone.xml 在<extensions>......</extensions>后加入 <system-properties> <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/> <property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION_MIME_TYPES" value="text/javascript,text/css,text/html"/> </system-properties>