|
@@ -92,11 +92,13 @@ public class OssUtils {
|
|
|
OSSObject ossObject = null;
|
|
|
InputStream inputStream = null;
|
|
|
try {
|
|
|
+ log.info("======init====== OssUtils.getOssFileAsString(" + filePath + ") start");
|
|
|
ossObject = OssUtils.client.getObject(OssUtils.getProperty("oss.bucketName"),
|
|
|
String.join("/", OssUtils.getProperty("oss.basePath"), filePath));
|
|
|
// ClientConfiguration cf = OssUtils.client.getClientConfiguration();
|
|
|
// cf.setSLDEnabled(true);
|
|
|
inputStream = ossObject.getObjectContent();
|
|
|
+ log.info("======init====== OssUtils.getOssFileAsString(" + filePath + ") end");
|
|
|
return IOUtils.toString(inputStream);
|
|
|
}catch (Exception e){
|
|
|
throw e;
|