报错::com.qiniu.http.Response@6ba920bf,status:400, reqId:Gz4AALjx4_zCgncV, xlog:redis.g;redis.g;UP/400, xvia:, adress:up-z1.qbox.me/110.242.48.28:443, duration:0.000000 s, error:incorrect region,
原因: 你 建存储空间 -->选择存储区域 的时候,区域必须 与 构建配置类中的 Zone.zone0() 一 一对应
//构造一个带指定Zone对象的配置类
Configuration cfg = new Configuration(Zone.zone0());//Zone.zone0() 指华东
Configuration cfg = new Configuration(Zone.zone1());//华北
Configuration cfg = new Configuration(Zone.zone2());//华南
七牛云图片下载 :
<body>
<p>保存地址=pkxzieqwj.bkt.clouddn.com/LMGD_b8b15b50ee7b4094a263306f0cfba26f</p>
<img src="http://七牛云域名/上传图片是的key" alt="" width="162" height="160" >
</body>
例如:
<body>
<img src="http://pkxzieqwj.bkt.clouddn.com/LMGD_b8b15b50ee7b4094a263306f0cfba26f" alt="" width="162" height="160" > </body>
文件保存路径(包括文件名),例如:http://七牛云域名/上传图片是的key
多谢
七牛选择华北简单上传抛出的异常 error:incorrect zone, please use up-z1.qiniu.com : https://blog.youkuaiyun.com/do168/article/details/51764563
关于SpringBoot上传图片的几种方式 : https://blog.youkuaiyun.com/wqh8522/article/details/78971260