解决产品启动问题
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
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user