jhipster - 如何添加额外的健康指标?
问题描述
试图在我的 jhipster 应用程序中添加额外的健康指标.. 除了以下内容,我还需要做什么?
@Component
@RestControllerEndpoint(id="xxx")
public class CustomActuatorEndpoint {
@GetMapping("/management/health/xxx")
public @ResponseBody
ResponseEntity customEndPoint(){
return new ResponseEntity<>("REST end point", HttpStatus.OK);
}
}
解决方案
推荐阅读
- parsing - ANTLR4 解析维基词典的文章奇怪地失败了
- python - 使用 Python3 访问 iSeries 数据库。文件未找到
- ruby-on-rails - 如何修复或初始化常量 CsvImporter::Report
- amazon-web-services - 如何添加 AWS 客户端 VPN 终端节点的名称?
- java - 无法在休眠搜索 6 中定义分析器
- sql - 如何在 SQL Server 存储过程中安排重复代码?
- javascript - 我的节点 js 从 json 文件中获取函数未在控制台上显示 json 数据
- c++ - 我在哪里可以找到 GLIBCXX_3.4.29?
- c# - C# 将证书字符串转换为 X509 证书
- ruby-on-rails - 使用 SELECT MAX 的集合的 ActiveRecord 查询在 Rails 中表现不佳