// 请求失败时打印的异常的信息
{ResponseInfo:com.qiniu.http.Response@6da68d,status:400, reqId:WxMAALQ6m6-3dFoU, xlog:UP:1/400, xvia:, adress:up.qiniu.com/183.136.139.10:80, duration:0.000000 s, error:incorrect zone, please use up-z1.qiniu.com}
//响应的文本信息
{"error":"incorrect zone, please use up-z1.qiniu.com"}
我的基本配置:
//要上传的空间, 空间名称的确已经创建
String bucketname = "demo";
//上传到七牛后保存的文件名
String key = "my-java.png";
//上传文件的路径
String FilePath = "C:/Users/Desktop/QQ截图20160620181506.png";
The storage area selected when creating the spatial domain is not supported. There will be no exception when using the South China area.