| | |
| | | import com.fgkj.util.*; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | |
| | | @RequestMapping("fileDownload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fileDownload接口") |
| | | public class FileDownloadController{ |
| | | /*private String PageName; |
| | | private String filename; |
| | |
| | | private String arr_Th; |
| | | private String contentLength;*/ |
| | | //返回一个输入流,作为一个客户端来说是一个输入流,但对于服务器端是一个 输出流 |
| | | public InputStream getDownloadFile(@RequestParam String filename,String contentLength){ |
| | | @PostMapping("downloadFile") |
| | | @ApiOperation(notes = "TODO ",value="downloadFile") |
| | | public InputStream getDownloadFile(@RequestParam String filename,@RequestParam String contentLength){ |
| | | InputStream is = null; |
| | | filename = "spket-1.6.23.jar"; |
| | | try { |