智慧农业后台管理
·
guoshilong
2022-09-23 bf1a1999cc8e1608e43bd07bec9ddd59544e0ccf
·
1 files modified
10 ■■■■ changed files
src/main/java/org/springblade/modules/resource/endpoint/OssEndpoint.java 10 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/resource/endpoint/OssEndpoint.java
@@ -226,10 +226,10 @@
    @PostMapping("put-files")
    public R putFiles(@RequestParam MultipartFile file) throws IOException, ServerException, InsufficientDataException, InternalException, InvalidResponseException, InvalidKeyException, NoSuchAlgorithmException, XmlParserException, ErrorResponseException {
        //填写你文件上传的地址以及相应信息
        String url = "http://61.131.136.25:2081";
        String access = "zhbaadmin";
        String secret = "zhbapassword";
        String bucket = "zhba";
        String url = "http://dev.jxpskj.com:9000";
        String access = "pskj";
        String secret = "pskj@2021";
        String bucket = "zhnc";
        MinioClient minioClient =
            MinioClient.builder()
                .endpoint(url)
@@ -258,7 +258,7 @@
                .headers(headers)
                .build());
        in.close();
        String urls = "http://61.131.136.25:2081/zhba/" + newName;
        String urls = TraceabilityCodeConfig.getUploadPath() + newName;
        //数据封装
        Map<String, Object> map = new HashMap<>(2);
        map.put("name", newName);