解决异常:OSS bucket you are attempting to access must be addressed using the specified endpoint

2023-05-06后端1 分钟147 次阅读
AI 摘要鱼粮不足,AI 今天先歇着 · 正文在下面

问题

刚建的新项目使用oss报错了
image.png

解决

这一般都是参数配错了,排查了下发现这个项目的oss是配置在beijing,改一下即可解决,以下三个参数务必要配置正确才能正常使用。

java 复制代码
OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
觉得有用就点个赞,不用登录也能读

评论

0 条
登录 之后才能评论
—
还没有评论,来说第一句