|
|
@@ -0,0 +1,37 @@
|
|
|
+package com.example.demo.controllers;
|
|
|
+
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@Slf4j
|
|
|
+@RequestMapping("/poi")
|
|
|
+public class PoiController {
|
|
|
+
|
|
|
+ @GetMapping("/list")
|
|
|
+ public String list(int i,int j){
|
|
|
+ String test = "i"+i+" "+"j"+j;
|
|
|
+ log.info(test);
|
|
|
+ return test;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/detail")
|
|
|
+ public String detail(){
|
|
|
+ return "this is detail";
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/add")
|
|
|
+ public String add(){
|
|
|
+ return "this is add";
|
|
|
+ }
|
|
|
+
|
|
|
+ @PutMapping("/edit")
|
|
|
+ public String edit(){
|
|
|
+ return "this is edit";
|
|
|
+ }
|
|
|
+
|
|
|
+ @DeleteMapping("/del")
|
|
|
+ public String del(){
|
|
|
+ return "this is del";
|
|
|
+ }
|
|
|
+}
|