|
|
@@ -513,11 +513,11 @@ public class ReportServiceImpl extends BaseServiceImpl<ReportMapper, Report> imp |
|
|
|
response.setContentType("application/msword;charset=GBK"); |
|
|
|
|
|
|
|
OutputStream out; |
|
|
|
//File files = new File(filePath); |
|
|
|
File files = new File(filePath,""); |
|
|
|
|
|
|
|
log.info("读出的文件文件地址为:{}",filePath); |
|
|
|
InputStream inputStream = this.getClass().getResourceAsStream(filePath); |
|
|
|
//FileInputStream inputStream = //new FileInputStream(files); |
|
|
|
//InputStream inputStream = this.getClass().getResourceAsStream(filePath); |
|
|
|
FileInputStream inputStream = new FileInputStream(files); |
|
|
|
//3.通过response获取ServletOutputStream对象(out) |
|
|
|
out = response.getOutputStream(); |
|
|
|
int b = 0; |