2

这个问题有多种答案,可以通过管理控制台解决。我想通过 Glassfish 的 XML 配置启用此功能,但尚未找到有关此功能的任何文档。

4

1 回答 1

6

你可以在domain.xml下面设置network-config-->protocols

例子:

<protocol name="http-listener-1">
  <http default-virtual-server="server" max-connections="250" 
    compressable-mime-type="text/html,text/xml,text/plain,text/javascript" compression="on" compression-min-size-bytes="4096">
  <file-cache></file-cache>
  </http>
</protocol>
于 2013-02-20T20:51:32.983 回答