Browse Source

修改异常处理

tianboguang 3 năm trước cách đây
mục cha
commit
92bcf8a9fb

+ 1 - 1
4dkankan-common-utils/src/main/java/com/fdkankan/common/util/FileUtils.java

@@ -204,7 +204,7 @@ public class FileUtils {
         try {
             return FileUtil.readUtf8String(path);
         } catch (IORuntimeException e) {
-            e.printStackTrace();
+            log.error("读取文件失败,文件不存在:{}", path);
             return null;
         }
     }