We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
由于业务需求关系,不能将云存储的配置信息写死在l配置文件中,需要从数据库中读取配置信息然后动态配置。根据文档用以下代码测试,返回提示:没有找到对应的存储平台。相关代码如下:
// 默认使用七牛云 QiniuKodoFileStorage storage = new QiniuKodoFileStorage(); storage.setPlatform("qiniu-oss-1"); storage.setBasePath("demo/"); storage.setDomain(platform.getDomain()); storage.setBucketName(platform.getBucketName()); storage.setAccessKey(platform.getAk()); storage.setAccessKey(platform.getSk()); list.add(storage); log.info("---------------------- the list ---------------------- {}", list); FileInfo fileInfo = fileStorageService.of(file) .setPlatform("qiniu-kodo-1") // 使用指定的存储平台 .upload(); R.ok(fileInfo);
The text was updated successfully, but these errors were encountered:
storage.setPlatform("qiniu-oss-1");
.setPlatform("qiniu-kodo-1") // 使用指定的存储平台
这两个不一样
Sorry, something went wrong.
大意了,已解决!
还有一个问题 storage.setAccessKey(platform.getAk()); storage.setAccessKey(platform.getSk()); 这两个一样的
No branches or pull requests
由于业务需求关系,不能将云存储的配置信息写死在l配置文件中,需要从数据库中读取配置信息然后动态配置。根据文档用以下代码测试,返回提示:没有找到对应的存储平台。相关代码如下:
The text was updated successfully, but these errors were encountered: