如何为JBoss EAP 6.2启用页面/ gzip压缩?
我在网上找到了旧的JBoss AS的信息,但没有为EAP提供任何信息.
你可以这样做:
file:standalone.xml(JBoss AS 7+)
位置:紧随其后
<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,text/xml,text/json"/> <!-- add other content types you want to gzip --> </system-properties>