package com.kwan.springbootkwan.controller; import com.kwan.springbootkwan.entity.Result; import com.kwan.springbootkwan.service.IExcelService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * excel测试信息 * * @author : qinyingjie * @version : 2.2.0 * @date : 2023/11/17 09:04 */ @Slf4j @Api(value = "excel测试信息", tags = "ExcelController") @RestController @RequestMapping("/test") public class ExcelController { @Resource private IExcelService excelService; @ApiOperation(value = "下载excel", notes = "下载excel") @GetMapping("/downloadExcel") public Result downloadExcel() { // excelService.downloadExcel(); return Result.ok(); } }