|
@@ -0,0 +1,16 @@
|
|
|
+package cn.org.bjca.trust.java.imserver.controller;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("hello")
|
|
|
+public class HelloController {
|
|
|
+ @GetMapping("/{id}")
|
|
|
+ public String getById(@PathVariable String id) throws Exception {
|
|
|
+ System.out.println("id ==> " + id);
|
|
|
+ return "{\n" + " \"msg\": \"qdxorigin\",\n" + " \"status\": \"201\",\n" + " \"data\": \"Sbfuiaefhaikufhcsauik\"\n" + "}";
|
|
|
+ }
|
|
|
+}
|