问题
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