Open jattxgt opened 2 years ago
您好,请尝试使用bundle版本SDK呢: https://support.huaweicloud.com/sdk-java-devg-obs/obs_21_0105.html
<dependency>
<groupId>com.huaweicloud</groupId>
<artifactId>esdk-obs-java-bundle</artifactId>
<version>bundleVersionNumber</version>
</dependency>
由于pom版本[3.21.8,) 是这种写法,导致更新maven,下载了最新版本。
新版本3.21.8.1实例化ObsClient失败,debug在com.obs.services.AbstractClient#static代码块failIfExternalEntityParsingCannotBeConfigured抛出异常org.springframework.beans.BeanUtils#instantiateClass(java.lang.reflect.Constructor, java.lang.Object...)
throw new BeanInstantiationException(ctor, "Constructor threw exception", ex.getTargetException());