Browse Source

Merge pull request #426 in CORE/base-third from ~BRUCE.DENG/base-third:bugfix/10.0 to bugfix/10.0

* commit '470ca7784dc80df5a2d23769ca8c0922ab1f001a':
  REPORT-29182 & REPORT-29600 weblogic部署导出excel报错
bugfix/10.0
Bruce.Deng 5 years ago
parent
commit
f4d66414ae
  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 @Override
public File createTempFile(String prefix, String suffix) throws IOException { public File createTempFile(String prefix, String suffix) throws IOException {
// Identify and create our temp dir, if needed // 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 = new File(System.getProperty("java.io.tmpdir"), "poifiles");
dir.mkdir(); dir.mkdir();

Loading…
Cancel
Save