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