docs: update wg-basic/minio

This commit is contained in:
Administrator 2021-12-12 15:22:42 +00:00 committed by John Smith
parent 9696f0ce03
commit da2fac025a

View File

@ -2,7 +2,7 @@
title: 11.MINIO文件管理 title: 11.MINIO文件管理
description: 使用文件系统管理上传文件 description: 使用文件系统管理上传文件
published: true published: true
date: 2021-12-12T15:19:50.333Z date: 2021-12-12T15:22:40.824Z
tags: wg-basic tags: wg-basic
editor: markdown editor: markdown
dateCreated: 2021-12-12T15:19:50.333Z dateCreated: 2021-12-12T15:19:50.333Z
@ -11,6 +11,12 @@ dateCreated: 2021-12-12T15:19:50.333Z
# yml配置 # yml配置
```yml ```yml
# mongo配置
spring:
data:
mongodb:
uri: mongodb://user:password@127.0.0.1:27017/dbName
file: file:
# 启用minIo默认为false # 启用minIo默认为false
use-min-io: true use-min-io: true
@ -28,9 +34,16 @@ file:
该功能集成与 **module-file** 模块,通过 `file.use-min-io` 配置确定是否开启 该功能集成与 **module-file** 模块,通过 `file.use-min-io` 配置确定是否开启
当多系统需要统一管理文件时,需要引入 **mongo-module-file** 模块 当多系统需要统一管理文件时,需要引入 **spring-boot-starter-data-mongodb** 模块 与 **mongo-module-file** 模块
```yml ```yml
<!-- mongodb start -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<!-- mongodb end -->
<dependency> <dependency>
<groupId>ink.wgink</groupId> <groupId>ink.wgink</groupId>
<artifactId>mongo-module-file</artifactId> <artifactId>mongo-module-file</artifactId>