|
@@ -0,0 +1,24 @@
|
|
|
|
|
+package com.tzld.piaoquan.supply.demand.engine.controller;
|
|
|
|
|
+
|
|
|
|
|
+import com.tzld.piaoquan.supply.demand.engine.common.annotation.NoRequestLog;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
+
|
|
|
|
|
+@Slf4j
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/")
|
|
|
|
|
+public class IndexController {
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 探活
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @NoRequestLog
|
|
|
|
|
+ @GetMapping("/healthcheck")
|
|
|
|
|
+ public String healthcheck() {
|
|
|
|
|
+ log.info("I'm ok");
|
|
|
|
|
+ return "ok";
|
|
|
|
|
+ }
|
|
|
|
|
+}
|