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