You've already forked FrameTour-BE
彻底铲除OSSUtil,抽象、修改
This commit is contained in:
@@ -1,7 +1,12 @@
|
||||
package com.ycwl.basic.config;
|
||||
|
||||
import com.ycwl.basic.storage.entity.AliOssStorageConfig;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
@@ -12,10 +17,10 @@ import org.springframework.stereotype.Component;
|
||||
@Data
|
||||
@Component
|
||||
public class FaceDetectConfig {
|
||||
@Value("${aliYunFace.accessKeyId}")
|
||||
@Value("${aliFace.accessKeyId}")
|
||||
private String accessKeyId;
|
||||
@Value("${aliYunFace.accessKeySecret}")
|
||||
@Value("${aliFace.accessKeySecret}")
|
||||
private String accessKeySecret;
|
||||
@Value("${aliYunFace.region}")
|
||||
@Value("${aliFace.region}")
|
||||
private String region;
|
||||
}
|
||||
|
@@ -1,29 +0,0 @@
|
||||
package com.ycwl.basic.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 阿里云OSS配置
|
||||
*
|
||||
* @author songmingsong
|
||||
**/
|
||||
@Data
|
||||
@Component
|
||||
public class OssConfig {
|
||||
@Value("${aliYunOss.endpoint}")
|
||||
private String endPoint;
|
||||
@Value("${aliYunOss.accessKeyId}")
|
||||
private String accessKeyId;
|
||||
@Value("${aliYunOss.accessKeySecret}")
|
||||
private String accessKeySecret;
|
||||
@Value("${aliYunOss.bucketName}")
|
||||
private String bucketName;
|
||||
@Value("${aliYunOss.objectName}")
|
||||
private String objectName;
|
||||
@Value("${aliYunOss.url}")
|
||||
private String url;
|
||||
@Value("${aliYunOss.region}")
|
||||
private String region;
|
||||
}
|
Reference in New Issue
Block a user