package com.example.demo.Mysql; import com.example.demo.domain.vo.Result; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @program: GOLD * @ClassName MysqlController * @description: * @author: huangqizhen * @create: 2025−07-08 15:50 * @Version 1.0 **/ @RestController @RequestMapping("/Mysql") @RequiredArgsConstructor @Slf4j @CrossOrigin public class MysqlController { @Autowired MysqlService mysqlService; @RequestMapping public Result Mysql () throws Exception { mysqlService.getSqlserverData(); return Result.success(); } }