如何解决访问 Azure Blob 时出现此异常“无法初始化类 com.azure.storage.blob.implementation.util.ModelHelper”
我正在从文档中提到的 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 举报,一经查实,本站将立刻删除。