caozixuan 1 年間 前
コミット
8fd6f15f4d

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

@@ -19,8 +19,6 @@ public class SysProperty {
         ClassLoader classLoader = SysProperty.class.getClassLoader();
         // 步骤 2:获取当前类的所在路径
         String path = Objects.requireNonNull(classLoader.getResource("")).getPath();
-        // 步骤 3:定位到项目的根目录
-//        String rootPath = path.substring(0, path.indexOf("/target"));
         // 打印根目录路径
         return new File(path).getParent() + "/temp";
     }

+ 0 - 4
src/main/java/cn/com/qmth/print/manage/service/impl/ExamStudentServiceImpl.java

@@ -31,7 +31,6 @@ import com.qmth.boot.tools.crypto.AES;
 import com.qmth.boot.tools.models.ByteArray;
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang.StringUtils;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.transaction.interceptor.TransactionAspectSupport;
@@ -59,9 +58,6 @@ public class ExamStudentServiceImpl extends ServiceImpl<ExamStudentDao, ExamStud
     @Resource
     private SysProperty sysProperty;
 
-//    @Value("${temp-data-dir}")
-//    String tempDir;
-
     @Override
     public ExamStudentEntity findByExamIdAndExamNumber(Long examId, String examNumber) {
         if (examId == null) {

+ 1 - 3
src/main/resources/application.properties

@@ -31,6 +31,4 @@ spring.datasource.hikari.maximum-pool-size=10
 #
 com.qmth.solar.server=https://solar.qmth.com.cn
 com.qmth.solar.accessKey=274f823e5f59410f8b3bb6edcd8e2b6e
-com.qmth.solar.accessSecret=y7AO6W0TOdTF8HpWBwGHbp3wfIHsmUKr
-
-#temp-data-dir=E:/qiming/qiming_dev/print-manage/print-manage-api/temp
+com.qmth.solar.accessSecret=y7AO6W0TOdTF8HpWBwGHbp3wfIHsmUKr