From 435c12fd06385b84ec0483774f914289213cab5b Mon Sep 17 00:00:00 2001 From: wenyu441069198 <14186472+wenyu441069198@user.noreply.gitee.com> Date: Thu, 30 May 2024 18:17:06 +0800 Subject: [PATCH] 2 --- .../backend/controller/UserController.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/main/java/com/teaching/backend/controller/UserController.java diff --git a/src/main/java/com/teaching/backend/controller/UserController.java b/src/main/java/com/teaching/backend/controller/UserController.java new file mode 100644 index 0000000..ec1b0f8 --- /dev/null +++ b/src/main/java/com/teaching/backend/controller/UserController.java @@ -0,0 +1,21 @@ +package com.teaching.backend.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; + +/** + * @Author:youhang + * @Date:2024-05-30-18:15 + * @Description: + */ +@Controller +public class UserController { + + @RequestMapping(value = "/1",method = RequestMethod.GET) + @ResponseBody + public String add(){ + return "yh"; + } +}