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.
|
|
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(); } }
|