添加MinIO文件上传支持

This commit is contained in:
macro
2020-01-04 15:54:06 +08:00
parent de89d82cde
commit 46e6170b78
6 changed files with 123 additions and 1 deletions

View File

@@ -19,6 +19,10 @@ spring:
port: 5672
username: guest
password: guest
servlet:
multipart:
enabled: true #开启文件上传
max-file-size: 10MB #限制文件上传大小为10M
mybatis:
mapper-locations:
- classpath:dao/*.xml
@@ -52,6 +56,7 @@ secure:
- /druid/**
- /admin/login
- /admin/register
- /minio/upload
aliyun:
oss:
endpoint: oss-cn-shenzhen.aliyuncs.com # oss对外服务的访问域名
@@ -63,4 +68,9 @@ aliyun:
maxSize: 10 # 上传文件大小(M)
callback: http://39.98.190.128:8080/aliyun/oss/callback # 文件上传成功后的回调地址
dir:
prefix: mall/images/ # 上传文件夹路径前缀
prefix: mall/images/ # 上传文件夹路径前缀
minio:
endpoint: http://192.168.6.132:9090 #MinIO服务所在地址
bucketName: mall #存储桶名称
accessKey: minioadmin #访问的key
secretKey: minioadmin #访问的秘钥