1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
//package com.gkhy.safePlatform.minioFile.config;
//
//import io.minio.MinioClient;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.stereotype.Component;
//
//@Component
//@ConfigurationProperties(prefix = "minio")
//public class MinioConfig {
//
//    private String endpoint;
//
//    private int port;
//
//    private String accessKey;
//
//    private String secretKey;
//
//    private Boolean secure;
//
//    private String bucketName;
//
//    private String urlPrefix;
//
//    @Bean
//    public MinioClient getMinioClient(){
//        String endpointUrl = "http://"+endpoint+":"+port;
//        MinioClient minioClient = MinioClient.builder().endpoint(endpointUrl)
//                .credentials(accessKey,secretKey)
//                .build();
//        return minioClient;
//    }
//
//    public String getEndpoint() {
//        return endpoint;
//    }
//
//    public void setEndpoint(String endpoint) {
//        this.endpoint = endpoint;
//    }
//
//    public int getPort() {
//        return port;
//    }
//
//    public void setPort(int port) {
//        this.port = port;
//    }
//
//    public String getAccessKey() {
//        return accessKey;
//    }
//
//    public void setAccessKey(String accessKey) {
//        this.accessKey = accessKey;
//    }
//
//    public String getSecretKey() {
//        return secretKey;
//    }
//
//    public void setSecretKey(String secretKey) {
//        this.secretKey = secretKey;
//    }
//
//    public Boolean getSecure() {
//        return secure;
//    }
//
//    public void setSecure(Boolean secure) {
//        this.secure = secure;
//    }
//
//    public String getBucketName() {
//        return bucketName;
//    }
//
//    public void setBucketName(String bucketName) {
//        this.bucketName = bucketName;
//    }
//
//    public String getUrlPrefix() {
//        return urlPrefix;
//    }
//
//    public void setUrlPrefix(String urlPrefix) {
//        this.urlPrefix = urlPrefix;
//    }
//}