TestController.java 493 B

12345678910111213141516171819
  1. package com.njuzr.eaibackend.controller;
  2. import org.springframework.web.bind.annotation.GetMapping;
  3. import org.springframework.web.bind.annotation.RequestMapping;
  4. import org.springframework.web.bind.annotation.RestController;
  5. /**
  6. * @author: Leonezhurui
  7. * @Date: 2024/2/14 - 22:14
  8. * @Package: EAI-Backend
  9. */
  10. @RestController
  11. @RequestMapping("/test")
  12. public class TestController {
  13. @GetMapping
  14. public MyResponse test() {
  15. return MyResponse.success("测试成功了");
  16. }
  17. }