Bladeren bron

优化器参数

huangxingxing 7 maanden geleden
bovenliggende
commit
a59a9acb13
2 gewijzigde bestanden met toevoegingen van 31 en 31 verwijderingen
  1. 18 18
      pom.xml
  2. 13 13
      src/main/java/com/miniframe/tools/XIFileUtils.java

+ 18 - 18
pom.xml

@@ -34,17 +34,17 @@
 
         <!-- nacos 依赖 -->
         <!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery -->
-<!--        <dependency>-->
-<!--            <groupId>com.alibaba.cloud</groupId>-->
-<!--            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
-<!--            <version>2.2.7.RELEASE</version>-->
-<!--            <exclusions>-->
-<!--                <exclusion>-->
-<!--                    <groupId>org.springframework.cloud</groupId>-->
-<!--                    <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>-->
-<!--                </exclusion>-->
-<!--            </exclusions>-->
-<!--        </dependency>-->
+        <!--        <dependency>-->
+        <!--            <groupId>com.alibaba.cloud</groupId>-->
+        <!--            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>-->
+        <!--            <version>2.2.7.RELEASE</version>-->
+        <!--            <exclusions>-->
+        <!--                <exclusion>-->
+        <!--                    <groupId>org.springframework.cloud</groupId>-->
+        <!--                    <artifactId>spring-cloud-starter-netflix-ribbon</artifactId>-->
+        <!--                </exclusion>-->
+        <!--            </exclusions>-->
+        <!--        </dependency>-->
 
 
 
@@ -216,13 +216,13 @@
         <!--            <systemPath>${project.basedir}/lib/ibatis-2.9.1.jar</systemPath>-->
         <!--        </dependency>-->
 
-                <dependency>
-                    <groupId>com.taobao</groupId>
-                    <artifactId>taobao-sdk-java-auto</artifactId>
-                    <version>1.0.0</version>
-                    <scope>system</scope>
-                    <systemPath>${project.basedir}/lib/taobao-sdk-java-auto.jar</systemPath>
-                </dependency>
+        <dependency>
+            <groupId>com.taobao</groupId>
+            <artifactId>taobao-sdk-java-auto</artifactId>
+            <version>1.0.0</version>
+            <scope>system</scope>
+            <systemPath>${project.basedir}/lib/taobao-sdk-java-auto.jar</systemPath>
+        </dependency>
 
 
 

+ 13 - 13
src/main/java/com/miniframe/tools/XIFileUtils.java

@@ -1,7 +1,7 @@
 package com.miniframe.tools;
 
 
-import com.alibaba.nacos.shaded.com.google.common.io.Resources;
+
 import com.miniframe.constant.MFConstant;
 import com.miniframe.core.exception.BusinessException;
 import com.miniframe.core.ext.UtilTools;
@@ -417,18 +417,18 @@ public class XIFileUtils {
 
         return url.substring(url.lastIndexOf("/") + 1);
     }
-
-    public static byte[] getResourceFileBytes(String resourcePath) throws Exception {
-
-        byte[] fileBytes = null;
-        try {
-            fileBytes = IOUtils.toByteArray((BufferedInputStream) Resources.getResource(resourcePath).getContent());
-        } catch (IOException e) {
-            throw new Exception("get file by path err : " + e.getMessage());
-        }
-        return fileBytes;
-
-    }
+//
+//    public static byte[] getResourceFileBytes(String resourcePath) throws Exception {
+//
+//        byte[] fileBytes = null;
+//        try {
+//            fileBytes = IOUtils.toByteArray((BufferedInputStream) Resources.getResource(resourcePath).getContent());
+//        } catch (IOException e) {
+//            throw new Exception("get file by path err : " + e.getMessage());
+//        }
+//        return fileBytes;
+//
+//    }
 
     public static byte[] getFileBytes(String filePath) throws Exception {
         byte[] fileBytes = null;