You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
855 B

  1. package com.example.demo.Mysql;
  2. import com.example.demo.domain.vo.Result;
  3. import lombok.RequiredArgsConstructor;
  4. import lombok.extern.slf4j.Slf4j;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.CrossOrigin;
  7. import org.springframework.web.bind.annotation.RequestMapping;
  8. import org.springframework.web.bind.annotation.RestController;
  9. /**
  10. * @program: GOLD
  11. * @ClassName MysqlController
  12. * @description:
  13. * @author: huangqizhen
  14. * @create: 202507-08 15:50
  15. * @Version 1.0
  16. **/
  17. @RestController
  18. @RequestMapping("/Mysql")
  19. @RequiredArgsConstructor
  20. @Slf4j
  21. @CrossOrigin
  22. public class MysqlController {
  23. @Autowired
  24. MysqlService mysqlService;
  25. @RequestMapping
  26. public Result Mysql () throws Exception {
  27. mysqlService.getSqlserverData();
  28. return Result.success();
  29. }
  30. }