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"; + } +}