/minio-spring-boot

Spring-Boot use Minio as Object Storage

Primary LanguageJava

spring boot use minio as Object Storage

config minio information in application.yml

# minio 文件存储配置信息
minio:
  endpoint: http://your.minio.com:9000
  accessKey: username
  secretKey: password
  bucketName: sourceMaterial

# minio 文件存储配置信息https://play.min.io的免费托管的MinIO服务。你可以随意使用此服务进行测试和开发。此示例中显示的访问凭据是公开的
minio:
  endpoint: https://play.min.io
  accessKey: Q3AM3UQ867SPQQA43P2F
  secretKey: zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG
  bucketName: sourceMaterial

测试接口地址信息 URL:

设置图片为公共可访问;

Docker下运行Minio

docker run -p 9000:9000 \
  -e "MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE" \
  -e "MINIO_ROOT_PASSWORD=wJalrXUtnFEMIK7MDENGbPxRfiCYEXAMPLEKEY" \
  minio/minio:RELEASE.2020-01-25T02-50-51Z server /data

参考官方资料