All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ipokerface.minio.MinioAutoConfiguration Maven / Gradle / Ivy

The newest version!
package cn.ipokerface.minio;

import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by       PokerFace
 * Create Date      2021/3/14.
 * Email:
 * Version          1.0.0
 * 

* Description: */ @Configuration @EnableConfigurationProperties({MinioProperties.class}) public class MinioAutoConfiguration { @Autowired private MinioProperties minioProperties; @Bean public MinioClient minioClient() { return MinioClient.builder() .endpoint(minioProperties.getUrl()) .credentials(minioProperties.getAccessKey(), minioProperties.getSecretKey()) .build(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy