主要问题是先找在本地进行导出的时候这个方法没有问题,但是在正式机的时候用了nginx,在进行导出时导出文件小的时候可以进行导出,在进行400kb左右的导出时前端出现504 Gateway Time-out nginx,后端显示是
org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : The part /docProps/core.xml fail to be saved in the stream with marshaller org.apache.poi.openxml4j.opc.internal.marshallers.ZipPackagePropertiesMarshaller@6b73fac
但是在正式机的其他导出方法也用的这个封装方法进行导出导出1000kb的也可以进行正常导出,不知道是什么原因造成的,期待解答、
前端nginx的日志是
[error] upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while reading response header from upstream, client: 192.168., server:, request: "GET /api/objectiveExecuteResult/downloadAssessObjective/null/2022-04%20%202022-04/null/null/0/Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImlzcyI6Ik9OT0ZGIiwiZXhwIjoxNjUyNzYwMzUwLCJpYXQiOjE2NTI2NzM5NTAsImp0aSI6IjwIn0.iDFTRHQAspjF3143tfrR-21bF0NXgyZ8jklHuMgU_fs? HTTP/1.1", upstream: "http://[::1]:9091/objectiveExecuteResult/downloadAssessObjective/null/2022-04%20%202022-04/null/null/0/Bearer%20eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJhZG1pbiIsImlzcyI6Ik9OT0ZGIiwiZXhwIjoxNjUyNzYwMzUwLCJpYXQiOjE2NTI2NzM5NTAsImp0aSI6IjIn0.iDFTRHQAspjF3143tfrR-21bF0NXgyZ8jklHuMgU_fs", host: "192.168.", referrer: "http://localhost:/"

springboo+vue项目pio导出表格方法问题
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-