0

试图在我的 jhipster 应用程序中添加额外的健康指标.. 除了以下内容,我还需要做什么?

@Component
@RestControllerEndpoint(id="xxx")
public class CustomActuatorEndpoint {
    @GetMapping("/management/health/xxx")
    public @ResponseBody
    ResponseEntity customEndPoint(){
        return  new ResponseEntity<>("REST end point", HttpStatus.OK);
    }
}
4

0 回答 0