1
0
chenendian vor 7 Monaten
Ursprung
Commit
444bfd1949

+ 2 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/utils/ServiceFileUtil.java

@@ -102,6 +102,8 @@ public class ServiceFileUtil {
             logger.warn("目录不存在: {}", directoryPath);
             throw new ServiceException("目录不存在: "+directoryPath);
         }
+        directoryPath="/"+file.getFileName();
+        dirPath = Paths.get(directoryPath);
         try {
             Files.copy(file, dirPath, StandardCopyOption.REPLACE_EXISTING);
             //Files.move(file, dirPath, StandardCopyOption.REPLACE_EXISTING);