Spring Boot application integrates minio
quickly, which is a high performance object Storage.
- Import dependencies
<dependency>
<groupId>cn.unikue.springstarter</groupId>
<artifactId>minio-spring-boot-starter</artifactId>
<version>LATEST</version>
</dependency>
By default, this starter will auto take effect, you can turn it off by
spring.minio.enabled = false
- Configure Spring Boot
application.yml
with prefixspring.minio
spring:
minio:
host: '127.0.0.1'
port: 9000
secure-http: true
access-key: 'foo'
secret-key: 'bar'
bucket-name: 'app'
- Configure your beans with a
MinioClient
bean by constructor or@Autowired
/@Resource
annotation, then you can access it as you wish.
- Github: https://github.com/unikueltd/minio-spring-boot-starter
- Minio homepage: https://min.io
- Minio github: https://github.com/minio/minio
- jdk 17+
This project is under the Apache License 2.0
See the NOTICE.txt
file for required notices and attributions.
You like this package? Then donate to us to support the development.
Beijing Unikue Network Technology Ltd.
- Unikue: https://unikue.cn