【发布时间】:2015-03-23 16:48:07
【问题描述】:
我正在按照文档为我的 dropwizard 应用程序创建一个运行状况检查,以实现数据库连接。我想知道 healthScript 如何获得数据库类?为了使用文档中提到的数据库类,我需要导入什么?
http://dropwizard.io/0.8.0-rc1/docs/manual/core.html#health-checks
【问题讨论】:
-
您可以查看这个使用 ElasticSearch 的示例应用程序:github.com/spinscale/dropwizard-blog-sample/blob/master/src/…
标签: database dropwizard health-monitoring