forked from I3-YF/i3plus-mes-yfai
注释掉华为obs代码,不需要
parent
010663944e
commit
ebd39ef044
@ -1,44 +1,44 @@
|
|||||||
package cn.estsh.i3plus.ext.mes.apiservice.config;
|
//package cn.estsh.i3plus.ext.mes.apiservice.config;
|
||||||
|
//
|
||||||
import cn.estsh.i3plus.ext.mes.apiservice.utils.HuaWeiOBSUtil;
|
//import cn.estsh.i3plus.ext.mes.apiservice.utils.HuaWeiOBSUtil;
|
||||||
import com.obs.services.ObsClient;
|
//import com.obs.services.ObsClient;
|
||||||
import lombok.Getter;
|
//import lombok.Getter;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
//import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.context.annotation.Bean;
|
//import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
//import org.springframework.context.annotation.Configuration;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* @Description : HuaWeiCloudObsConfig
|
// * @Description : HuaWeiCloudObsConfig
|
||||||
* @Author :gsz
|
// * @Author :gsz
|
||||||
* @Date 2024/6/11 13:28
|
// * @Date 2024/6/11 13:28
|
||||||
* @Modify
|
// * @Modify
|
||||||
**/
|
// **/
|
||||||
@Configuration
|
//@Configuration
|
||||||
public class HuaWeiCloudObsConfig {
|
//public class HuaWeiCloudObsConfig {
|
||||||
|
//
|
||||||
@Value("${huaweiobs.bucketName}")
|
// @Value("${huaweiobs.bucketName}")
|
||||||
@Getter
|
// @Getter
|
||||||
private String bucketName;
|
// private String bucketName;
|
||||||
|
//
|
||||||
@Value("${huaweiobs.ak}")
|
// @Value("${huaweiobs.ak}")
|
||||||
@Getter
|
// @Getter
|
||||||
private String ak;
|
// private String ak;
|
||||||
|
//
|
||||||
@Value("${huaweiobs.sk}")
|
// @Value("${huaweiobs.sk}")
|
||||||
@Getter
|
// @Getter
|
||||||
private String sk;
|
// private String sk;
|
||||||
|
//
|
||||||
@Value("${huaweiobs.endPoint}")
|
// @Value("${huaweiobs.endPoint}")
|
||||||
@Getter
|
// @Getter
|
||||||
private String endPoint;
|
// private String endPoint;
|
||||||
|
//
|
||||||
@Bean
|
// @Bean
|
||||||
public ObsClient getObsClient() {
|
// public ObsClient getObsClient() {
|
||||||
ObsClient obsClient = new ObsClient(ak, sk, endPoint);
|
// ObsClient obsClient = new ObsClient(ak, sk, endPoint);
|
||||||
return obsClient;
|
// return obsClient;
|
||||||
}
|
// }
|
||||||
@Bean
|
// @Bean
|
||||||
public HuaWeiOBSUtil huaWeiOBSUtil() {
|
// public HuaWeiOBSUtil huaWeiOBSUtil() {
|
||||||
return new HuaWeiOBSUtil(bucketName, ak, sk, endPoint);
|
// return new HuaWeiOBSUtil(bucketName, ak, sk, endPoint);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue