| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.websocket.server.PathParam; |
| | | |
| | | import com.ruoyi.service.DownLoadFileService; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private ServerConfig serverConfig; |
| | | |
| | | @Autowired |
| | | private DownLoadFileService downLoadFileService; |
| | | |
| | | private static final String FILE_DELIMETER = ","; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/downLoadFile") |
| | | public AjaxResult downLoadFile(@RequestParam("path") String path,HttpServletResponse response) throws Exception { |
| | | return downLoadFileService.downLoadFile(path,response); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通用上传请求(单个) |
| | | */ |