调整客户端获取方式

This commit is contained in:
2023-10-27 21:20:12 +08:00
parent 855d874bb9
commit 2cca898f99
2 changed files with 6 additions and 7 deletions

View File

@@ -93,12 +93,11 @@ public class HuaweiObsProperties implements InitializingBean {
*/
@Override
public void afterPropertiesSet() {
Assert.hasText(accessKey, "华为云accessKey信息必填");
Assert.hasText(securityKey, "华为云securityKey信息必填");
Assert.notNull(getObs(),"obs相关信息必填");
Assert.hasText(getObs().bucket, "obs桶信息必填");
Assert.hasText(getObs().endpoint, "obs终端节点访问路径必填");
Assert.notNull(getObs().expire, "obs_url生命周期必填");
Assert.hasText(accessKey, "huawei-accessKey undefined");
Assert.hasText(securityKey, "huawei-securityKey undefined");
Assert.hasText(getObs().bucket, "obs bucket undefined");
Assert.hasText(getObs().endpoint, "obs endpoint undefined");
Assert.notNull(getObs().expire, "obs expire undefined");
}
}

View File

@@ -1,5 +1,5 @@
#Generated by Maven
#Sat Sep 23 14:16:08 CST 2023
#Fri Oct 27 14:57:08 CST 2023
version=1.0.0
groupId=com.njcn
artifactId=huawei-obs-springboot-starter