瀏覽代碼

fix:
1.dir

caozixuan 1 年之前
父節點
當前提交
48390707ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/cn/com/qmth/print/manage/config/SysProperty.java

+ 1 - 1
src/main/java/cn/com/qmth/print/manage/config/SysProperty.java

@@ -17,7 +17,7 @@ public class SysProperty {
     private String tempDir = initTempDataDir();
 
     public static String initTempDataDir() {
-        ClassLoader classLoader = ExamController.class.getClassLoader();
+        ClassLoader classLoader = SysProperty.class.getClassLoader();
         // 步骤 2:获取当前类的所在路径
         String path = Objects.requireNonNull(classLoader.getResource("")).getPath();
         // 步骤 3:定位到项目的根目录