Browse Source

hello world

lijilei 3 years ago
parent
commit
83a49d1baa

+ 28 - 0
book-push/src/main/java/com/book/push/controller/HelloController.java

@@ -0,0 +1,28 @@
+package com.book.push.controller;
+
+import com.book.push.vo.result.Result;
+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;
+
+/**
+ * created in 2021/9/26
+ * Project: book-store
+ *
+ * @author win7
+ */
+@Slf4j
+@RestController
+@RequestMapping("/hello")
+public class HelloController {
+
+
+    @GetMapping
+    public Result hello() {
+        log.info("hello world !");
+        return Result.success();
+
+
+    }
+}