解决异常:OSS bucket you are attempting to access must be addressed using the specified endpoint
AI 摘要鱼粮不足,AI 今天先歇着 · 正文在下面
问题
刚建的新项目使用oss报错了

解决
这一般都是参数配错了,排查了下发现这个项目的oss是配置在beijing,改一下即可解决,以下三个参数务必要配置正确才能正常使用。
java
OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
评论
0 条—
还没有评论,来说第一句