feat: 1:文件访问分oss和s3 2:去掉定时任务去同步每天的数据
This commit is contained in:
+12
@@ -125,6 +125,16 @@ public class S3Template implements InitializingBean {
|
||||
return url.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取预览地址
|
||||
* @param path
|
||||
* @return
|
||||
*/
|
||||
public String getViewUrlNoExpires(String path) {
|
||||
String url = fileProperties.getS3().getEndpoint() + PATH_SPLIT+fileProperties.getS3().getBucketName()+ PATH_SPLIT+ path;
|
||||
return url;
|
||||
}
|
||||
|
||||
public void out(String objectName, OutputStream os) {
|
||||
out(fileProperties.getS3().getBucketName(), objectName, os);
|
||||
}
|
||||
@@ -216,4 +226,6 @@ public class S3Template implements InitializingBean {
|
||||
public AmazonS3 getAmazonS3() {
|
||||
return this.amazonS3;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user