c0c380b8 by chentao

no message

1 parent f78b010f
...@@ -163,8 +163,9 @@ public class OssClient { ...@@ -163,8 +163,9 @@ public class OssClient {
163 } 163 }
164 164
165 public InputStream getObjectContent(String path) { 165 public InputStream getObjectContent(String path) {
166 log.info("=====getUrl()=="+getUrl()); 166 path = path.replace(getUrl() + "/", "");
167 path = path.replace("http://127.0.0.1:9000" + "/", ""); 167 log.info("============path==========="+path);
168 log.info("============properties.getBucketName()==========="+properties.getBucketName());
168 S3Object object = client.getObject(properties.getBucketName(), path); 169 S3Object object = client.getObject(properties.getBucketName(), path);
169 return object.getObjectContent(); 170 return object.getObjectContent();
170 } 171 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!