In Dropwizard, the admin health servlet can be disabled in yaml via:
admin:
healthChecks:
servletEnabled: true
Source: https://www.dropwizard.io/en/release-4.0.x/manual/core.html#health
Is there a way to do this programmatically, for example in the run
or initialize
methods of my dropwizard application, where I have access to the io.dropwizard.core.setup.Environment
object?