Browse Source

REPORT-29182 & REPORT-29600 weblogic部署导出excel报错

bugfix/10.0
Bruce.Deng 5 years ago
parent
commit
470ca7784d
  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