我的build.gradle中有以下内容:
compile "io.dropwizard.metrics:metrics-core:3.1.0"
compile "io.dropwizard.metrics:metrics-servlet:3.1.0"
compile "io.dropwizard.metrics:metrics-healthchecks:3.1.0"在检查度量-servlet时,我看到:

据https://dropwizard.github.io/metrics/3.1.0/manual/servlets/称,
“指标-servlet模块提供了一些有用的servlet”,包括HealthCheckServlet、MetricsServlet和ThreadDumpServlet。
这些servlet在哪里,如果不是在度量-servlet!?
发布于 2015-11-14 22:19:45
有一个度量--servlet和度量--servlet模块。Servlet包含抽象框架类,Servlet包含具体实现。
这样做是可行的:
compile "io.dropwizard.metrics:metrics-core:3.1.0"
compile "io.dropwizard.metrics:metrics-servlet:3.1.0"
compile "io.dropwizard.metrics:metrics-servlets:3.1.0"
compile "io.dropwizard.metrics:metrics-healthchecks:3.1.0"实际上,只需要以下几点:
compile "io.dropwizard.metrics:metrics-servlets:3.1.0"
compile "io.dropwizard.metrics:metrics-healthchecks:3.1.0"https://stackoverflow.com/questions/33714023
复制相似问题