@@ -16,11 +16,11 @@ It's using some very popular technology like:
1616本文不会对 MongoDB 的概念、基本用法做过多的介绍,有兴趣的朋友可自行查阅其他文献,比如,笔者所著的[ 《分布式系统常用技术及案例分析》] ( https://github.com/waylau/distributed-systems-technologies-and-cases-analysis ) 一书,对 MongoDB 方面也有所着墨。
1717
1818
19- ## Features
19+ ## Features 特性
2020
21- * Easy to use.
21+ * Easy to use.(易于使用)
2222* RESTful API.
23- * Chinese characters friendly.
23+ * Chinese characters friendly.(中文友好)
2424* ...
2525
2626## APIs
@@ -34,28 +34,30 @@ Here are useful APIs.
3434* DELETE /{id} : Delete file.(删除文件)
3535
3636
37- ## How to
37+ ## How to (如何使用)
3838
3939It's so easy to start up the MongoDB File Server with 2 steps.
4040
41- ### 1. Get source
41+ 只需要两步。
42+
43+ ### 1. Get source(获取源码)
4244
4345``` shell
4446$ git clone https://github.com/waylau/mongodb-file-server.git
4547```
4648
47- ### 2. Run
49+ ### 2. Run(运行)
4850
4951``` shell
5052$ gradlew bootRun
5153```
5254
5355then, you can visit the application at < http://localhost:8081 > .
5456
55- ## Configuration
57+ ## Configuration (配置)
5658
5759
58- The default configuration is :
60+ The default configuration is (默认配置如下) :
5961
6062```
6163server.address=localhost
@@ -75,13 +77,13 @@ spring.http.multipart.max-request-size=1024KB
7577
7678NOTE: default configuration will use a embedded Mongo, that means data will never persist when the MongoDB File Server restart.
7779
78- You can set ` spring.data.mongodb.uri ` property to configure additional settings such as the replica set:
80+ You can set ` spring.data.mongodb.uri ` property to configure additional settings such as the replica set.(支持配置独立运行的 MongoDB 的连接方式) :
7981
8082``` shell
8183spring.data.mongodb.uri=mongodb://user:
[email protected] :12345,mongo2.example.com:23456/test
8284```
8385
84- If you want to use a stanlne MongoDB server, comment out Embedded MongoDB dependencies in ` build.gradle ` file:
86+ If you want to use a stanlne MongoDB server, comment out Embedded MongoDB dependencies in ` build.gradle ` file.(如果需要使用独立运行的 MongoDB,就把下面的依赖注释掉) :
8587
8688```
8789dependencies {
@@ -91,11 +93,11 @@ dependencies {
9193}
9294```
9395
94- ## Detail
96+ ## Detail (详细设计说明)
9597
9698See detail < https://waylau.com/mogodb-file-server-with-spring-boot > .
9799
98- ## Host
100+ ## Host(托管)
99101
100102* GitHub:< https://github.com/waylau/mongodb-file-server >
101103* 码云:< https://gitee.com/waylau/mongodb-file-server >
0 commit comments