【问题标题】:How to disable admin port in DropWizard while using gzip server mode/type如何在使用 gzip 服务器模式/类型时禁用 DropWizard 中的管理端口
【发布时间】:2016-08-11 10:43:36
【问题描述】:

我试图在使用“gzip”服务器模式时禁用 DropWizard 中的管理端口。 我知道这在“简单”服务器中是可能的。下面是 .yml 文件配置。 -

server:
  type: simple

但我想在 gzip 服务器模式下禁用管理端口。

server:
  gzip:
    bufferSize: 8KiB

注意:我不能使用“简单”服务器,因为我们依赖“gzip”。 我现在没有想法了,非常感谢任何帮助。

【问题讨论】:

    标签: gzip dropwizard


    【解决方案1】:

    默认的 Dropwizard 配置包括一个管理员连接器。为防止这种情况,您需要明确告诉它不包含任何管理员连接器:

    server:
      gzip:
        bufferSize: 8KiB
      adminConnectors: []
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-05-13
      • 1970-01-01
      • 1970-01-01
      • 2021-02-27
      • 2019-04-17
      • 2018-04-19
      • 2019-12-08
      相关资源
      最近更新 更多