调整客户端获取方式
This commit is contained in:
1
.idea/compiler.xml
generated
1
.idea/compiler.xml
generated
@@ -2,6 +2,7 @@
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
<profile name="Maven default annotation processors profile" enabled="true">
|
||||
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||
|
||||
@@ -158,7 +158,7 @@ public class OBSUtil {
|
||||
ObsClient obsClient = null;
|
||||
try {
|
||||
String bucketName = huaweiObsProperties.getObs().getBucket();
|
||||
ObsObject obsObject = obsClient.getObject(bucketName, fileName);
|
||||
ObsObject obsObject = huaweiObsProperties.getInstance().getObject(bucketName, fileName);
|
||||
return obsObject.getObjectContent();
|
||||
} catch (ObsException e) {
|
||||
log.error("obs文件下载失败", e);
|
||||
|
||||
Reference in New Issue
Block a user