From 1d13ac61b00e2b9b6b43deb2fd1a08dd27099fb8 Mon Sep 17 00:00:00 2001 From: suvvm <915269675@qq.com> Date: Wed, 13 Nov 2019 14:06:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E6=B5=8B=E8=AF=95Controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/TestController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/TestController.java diff --git a/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/TestController.java b/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/TestController.java new file mode 100644 index 0000000..d91fa4e --- /dev/null +++ b/OnlineSurveyBackEnd/src/main/java/qdu/suvvm/onlinesurvey/controller/TestController.java @@ -0,0 +1,18 @@ +package qdu.suvvm.onlinesurvey.controller; + +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +/** + * @Author: SUVVM + * @Date: 2019/11/13 13:54 + */ +@RestController +public class TestController { + @PostMapping(value = "/test") + public String test(@RequestParam("text1") String text1, @RequestParam("text2") String text2) { + System.out.println(text1 + " " + text2); + return "yes"; + } +}