| | |
| | | package com.ruoyi.file.config; |
| | | |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import io.minio.MinioClient; |
| | | |
| | | /** |
| | | * Minio 配置信息 |
| | | * |
| | | * @author jqs |
| | | */ |
| | | @Configuration |
| | | /*@Configuration |
| | | @ConfigurationProperties(prefix = "minio") |
| | | public class MinioConfig |
| | | { |
| | | /** |
| | | *//** |
| | | * 服务地址 |
| | | */ |
| | | *//* |
| | | private String url; |
| | | |
| | | /** |
| | | *//** |
| | | * 用户名 |
| | | */ |
| | | *//* |
| | | private String accessKey; |
| | | |
| | | /** |
| | | *//** |
| | | * 密码 |
| | | */ |
| | | *//* |
| | | private String secretKey; |
| | | |
| | | /** |
| | | *//** |
| | | * 存储桶名称 |
| | | */ |
| | | *//* |
| | | private String bucketName; |
| | | |
| | | public String getUrl() |
| | |
| | | { |
| | | return MinioClient.builder().endpoint(url).credentials(accessKey, secretKey).build(); |
| | | } |
| | | } |
| | | }*/ |