no message
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment