HealthController.java 499 B

123456789101112131415161718192021
  1. package com.tzld.ffmpeg.controller;
  2. import com.tzld.ffmpeg.annotation.NoRequestLog;
  3. import org.springframework.web.bind.annotation.GetMapping;
  4. import org.springframework.web.bind.annotation.RequestMapping;
  5. import org.springframework.web.bind.annotation.RestController;
  6. @RestController
  7. @RequestMapping("/")
  8. public class HealthController {
  9. /**
  10. * 探活
  11. * @return
  12. */
  13. @GetMapping("/healthcheck")
  14. @NoRequestLog
  15. public String healthcheck() {
  16. return "ok";
  17. }
  18. }