How to disable admin port in DropWizard while using gzip server mode/type

一个人想着一个人 提交于 2019-12-23 15:50:21

问题


I am trying to disable admin port in DropWizard while using 'gzip' server mode. I know this is possible in 'simple' server. Below is the .yml file configuration. -

server:
  type: simple

but I want to disable admin port in gzip server mode.

server:
  gzip:
    bufferSize: 8KiB

NOTE: I cant use 'simple' server as we have dependency on 'gzip'. I am out of ideas now any help is really appreciated.


回答1:


The default Dropwizard config includes an admin connector. To prevent this, you will need to explicitly tell it to not include any admin connectors:

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


来源:https://stackoverflow.com/questions/38894164/how-to-disable-admin-port-in-dropwizard-while-using-gzip-server-mode-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!