Browse Source

Pull request #431: 无 jira 任务, bugfix 合并 release

Merge in CORE/base-third from bugfix/10.0 to release/10.0

* commit 'f4d66414ae53802ea80752d2a940de0f68bcedb0':
  REPORT-29182 & REPORT-29600 weblogic部署导出excel报错
release/10.0
Harrison 5 years ago
parent
commit
1785fc363e
  1. 3
      fine-poi/src/com/fr/third/v2/org/apache/poi/util/TempFile.java

3
fine-poi/src/com/fr/third/v2/org/apache/poi/util/TempFile.java

@ -93,7 +93,8 @@ public final class TempFile {
@Override
public File createTempFile(String prefix, String suffix) throws IOException {
// Identify and create our temp dir, if needed
if (dir == null)
// 这里判断下路径是否存在,省的再排查temp目录丢失的问题
if (dir == null || !dir.exists())
{
dir = new File(System.getProperty("java.io.tmpdir"), "poifiles");
dir.mkdir();

Loading…
Cancel
Save