|
@@ -451,17 +451,13 @@ public class MinioTemplate implements FileStorageTemplate {
|
|
|
public String getInternalEndpoint(String bucket ,String key) {
|
|
|
URI uri = new URI(minioProperties.getInternalEndpoint());
|
|
|
String host = uri.getHost();
|
|
|
- host=bucket+"."+host;
|
|
|
return new URI(uri.getScheme(), host, uri.getPath()+"/"+key, uri.getFragment()).toString();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@SneakyThrows
|
|
|
public String getInternalEndpoint(String key) {
|
|
|
- URI uri = new URI(minioProperties.getInternalEndpoint());
|
|
|
- String host = uri.getHost();
|
|
|
- host=this.getBucket()+"."+host;
|
|
|
- return new URI(uri.getScheme(), host, uri.getPath()+"/"+key, uri.getFragment()).toString();
|
|
|
+ return getInternalEndpoint(minioProperties.getBucket(), key);
|
|
|
}
|
|
|
@Override
|
|
|
public void copyFolder(String sourcePath, String targetPath) {
|