更改pdf打印路径

master
jian.wang 2 years ago
parent 393397c566
commit 3e0bc12f4f

@ -42,10 +42,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@ -253,7 +253,7 @@ public class BatchExportServiceImpl implements BatchExportService {
bis = new BufferedInputStream(new ByteArrayInputStream(file1));
//输出
int len = 0;
byte[] buf = new byte[100 * 1024];
byte[] buf = new byte[1024 * 1024];
while ((len = bis.read(buf, 0, buf.length)) != -1) {
bos.write(buf, 0, len);
}

Loading…
Cancel
Save