问题描述
我正在从文档中提到的 Spring Boot 应用程序访问 Azure blob,我包含了以下 JAR,
BlobContainerClient blobContainerClient = new BlobContainerClientBuilder()
.endpoint(fileServerURL + "/" + containerName + "/test/123" + "?" + sasToken)
.buildClient();
然后我使用以下代码列出 Azure blob 中的文件,
blobContainerClient.listBlobs()
.stream().<<mycode>>
我正在访问容器内的 blob 并列出文件,
Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.azure.storage.blob.implementation.util.ModelHelper
当我尝试调试时,断点在第 2 行之后运行,正好在 .endpoint() 方法调用处。没有奇怪的堆栈跟踪(我试图将其包含在 try/catch 中)但没有用。我在客户端收到以下异常,
{{1}}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)