Explorar o código

修复依赖问题

nahida hai 2 meses
pai
achega
886a912c9a

+ 16 - 6
pom.xml

@@ -1,16 +1,12 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <modelVersion>4.0.0</modelVersion>
-    <parent>
-        <groupId>com.zksy</groupId>
-        <artifactId>zksy</artifactId>
-        <version>1.0.0</version>
-    </parent>
 
+    <groupId>com.zksy</groupId>
     <artifactId>minioutil</artifactId>
     <packaging>jar</packaging>
     <description>minio工具类</description>
-    <version>1.0.1</version>
+    <version>1.0.2</version>
 
     <name>minioutil</name>
     <url>http://maven.apache.org</url>
@@ -19,6 +15,18 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-dependencies</artifactId>
+                <version>2.7.15</version> <!-- 选择稳定版本 -->
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
         <dependency>
             <groupId>junit</groupId>
@@ -29,10 +37,12 @@
         <dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-web</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>org.projectlombok</groupId>
             <artifactId>lombok</artifactId>
+            <scope>provided</scope>
         </dependency>
         <dependency>
             <groupId>io.minio</groupId>

+ 0 - 3
src/main/java/com/zksy/service/impl/MinioFileStorageServiceImpl.java

@@ -3,9 +3,6 @@ package com.zksy.service.impl;
 import com.zksy.config.MinIOConfigProperties;
 import com.zksy.service.MinioFileStorageService;
 import io.minio.*;
-import io.minio.errors.*;
-import io.minio.messages.ObjectMetadata;
-import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;