Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
cbb965d2
Commit
cbb965d2
authored
Jun 17, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 微观大数据平台-解决服务器导出文件问题
parent
e4e40836
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ExcelExportUtils.java
.../src/main/java/net/wanji/opt/common/ExcelExportUtils.java
+2
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/common/ExcelExportUtils.java
View file @
cbb965d2
...
...
@@ -30,7 +30,8 @@ public class ExcelExportUtils {
// 使用EasyExcel进行导出
try
(
ServletOutputStream
outputStream
=
response
.
getOutputStream
())
{
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
outputStream
,
clazz
).
build
();
// 解决服务器导出文件没数据问题 核心这个配置开始内存处理模式 inMemory少量数据
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
outputStream
,
clazz
).
inMemory
(
Boolean
.
TRUE
).
build
();
WriteSheet
writeSheet
=
EasyExcel
.
writerSheet
(
sheetName
).
build
();
// 填充数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment