解决产品启动问题
This commit is contained in:
@@ -4,6 +4,7 @@ import com.aliyun.oss.ServiceException;
|
||||
import io.minio.MinioClient;
|
||||
import io.minio.PutObjectArgs;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.util.UriUtils;
|
||||
|
||||
@@ -14,9 +15,9 @@ import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class MinIoUploadService {
|
||||
@Autowired
|
||||
@Autowired(required=false)
|
||||
private MinioClient minioClient;
|
||||
private static String bucket="ngwl";
|
||||
private static String host="http://10.102.192.5:6000";
|
||||
@@ -31,7 +32,7 @@ public class MinIoUploadService {
|
||||
|
||||
/**
|
||||
* 上传到minio
|
||||
* @param fileName
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
|
||||
|
||||
@@ -129,6 +129,12 @@
|
||||
<groupId>com.mhd</groupId>
|
||||
<artifactId>mhd-common-log</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.minio</groupId>
|
||||
<artifactId>minio</artifactId>
|
||||
<version>8.5.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
+1
-1
@@ -97,7 +97,7 @@ public class MenuApplicationService {
|
||||
private SpecialServiceFeign logisticsServiceFeign;
|
||||
@Resource
|
||||
private MenuUtils menuUtils;
|
||||
@Autowired
|
||||
@Autowired(required = false)
|
||||
private MinIoUploadService minIoUploadService;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user