From a91fe69f769e235086742a188d061b5d891f3f0f Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期一, 29 五月 2023 09:40:36 +0800
Subject: [PATCH] 添加文档
---
doc/_content/introduction/config.md | 55 +++++++++++++++++++++++++--
src/main/resources/all-application.yml | 8 ++++
README.md | 1
3 files changed, 60 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 3aa99f8..572746d 100644
--- a/README.md
+++ b/README.md
@@ -104,6 +104,7 @@
- [X] 浜戠褰曞儚锛屾帹娴�/浠g悊/鍥芥爣瑙嗛鍧囧彲浠ュ綍鍒跺湪浜戠鏈嶅姟鍣紝鏀寔棰勮鍜屼笅杞�
- [X] 鏀寔鎵撳寘鍙墽琛宩ar鍜寃ar
- [X] 鏀寔璺ㄥ煙璇锋眰锛屾敮鎸佸墠鍚庣鍒嗙閮ㄧ讲
+- [X] 鏀寔Mysql锛孭ostgresql锛岄噾浠撶瓑鏁版嵁搴�
# 鎺堟潈鍗忚
鏈」鐩嚜鏈変唬鐮佷娇鐢ㄥ鏉剧殑MIT鍗忚锛屽湪淇濈暀鐗堟潈淇℃伅鐨勬儏鍐典笅鍙互鑷敱搴旂敤浜庡悇鑷晢鐢ㄣ�侀潪鍟嗕笟鐨勯」鐩�� 浣嗘槸鏈」鐩篃闆剁鐨勪娇鐢ㄤ簡涓�浜涘叾浠栫殑寮�婧愪唬鐮侊紝鍦ㄥ晢鐢ㄧ殑鎯呭喌涓嬭鑷鏇夸唬鎴栧墧闄わ紱 鐢变簬浣跨敤鏈」鐩�屼骇鐢熺殑鍟嗕笟绾犵悍鎴栦镜鏉冭涓轰竴姒備笌鏈」鐩強寮�鍙戣�呮棤鍏筹紝璇疯嚜琛屾壙鎷呮硶寰嬮闄┿�� 鍦ㄤ娇鐢ㄦ湰椤圭洰浠g爜鏃讹紝涔熷簲璇ュ湪鎺堟潈鍗忚涓悓鏃惰〃鏄庢湰椤圭洰渚濊禆鐨勭涓夋柟搴撶殑鍗忚
diff --git a/doc/_content/introduction/config.md b/doc/_content/introduction/config.md
index ba8d564..26fa80c 100644
--- a/doc/_content/introduction/config.md
+++ b/doc/_content/introduction/config.md
@@ -29,10 +29,57 @@
```
杩欎篃鏄垜鑷繁鏈�甯哥敤鐨勬柟寮忋��
## 2 閰嶇疆WVP-PRO
-### 2.1 Mysql鏁版嵁搴撻厤缃�
-棣栧厛浣犻渶瑕佸垱寤轰竴涓悕涓簑vp锛堜篃鍙娇鐢ㄥ叾浠栧悕瀛楋級鐨勬暟鎹簱锛屽苟浣跨敤sql/mysql.sql瀵煎叆鏁版嵁搴擄紝鍒濆鍖栨暟鎹簱缁撴瀯銆�
-(杩欓噷娉ㄦ剰锛屽彇鍐充簬鐗堟湰锛屾柊鐗堢殑sql鏂囦欢澶逛笅鏈塽pdate.sql锛岃ˉ涓佸寘锛屼竴瀹氳娉ㄦ剰杩愯瀵煎叆)
-鍦╝pplication-dev.yml涓厤缃紙浣跨敤1.2鏂瑰紡鐨勬槸鍦╦ar鍖呯殑鍚岀骇鐩綍鐨刟pplication.yml锛夐厤缃暟鎹簱杩炴帴锛屽寘鎷暟鎹簱杩炴帴淇℃伅锛屽瘑鐮併��
+wvp鏀寔澶氱鏁版嵁搴擄紝鍖呮嫭Mysql锛孭ostgresql锛岄噾浠撶瓑锛岄厤缃换閫変竴绉嶅嵆鍙��
+### 2.1 鏁版嵁搴撻厤缃�
+#### 2.1.1 鍒濆鍖栨暟鎹簱
+棣栧厛浣跨敤鍒涘缓鏁版嵁搴擄紝鐒跺悗浣跨敤sql/鍒濆鍖�.sql鍒濆鍖栨暟鎹簱锛屽鏋滄槸浠庢棫鐗堝崌绾т笂鏉ョ殑锛屼娇鐢ㄥ崌绾ql鏇存柊銆�
+#### 2.1.2 Mysql鏁版嵁搴撻厤缃�
+鏁版嵁搴撳悕绉颁互wvp涓轰緥
+```yaml
+spring:
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.mysql.cj.jdbc.Driver
+ url: jdbc:mysql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
+ username: root
+ password: 12345678
+
+mybatis:
+ configuration:
+ map-underscore-to-camel-case: true
+```
+#### 2.1.3 Postgresql鏁版嵁搴撻厤缃�
+鏁版嵁搴撳悕绉颁互wvp涓轰緥
+```yaml
+spring:
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: org.postgresql.Driver
+ url: jdbc:postgresql://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&serverTimezone=PRC&useSSL=false&allowMultiQueries=true&allowPublicKeyRetrieval=true
+ username: root
+ password: 12345678
+mybatis:
+ configuration:
+ map-underscore-to-camel-case: true
+pagehelper:
+ helper-dialect: postgresql
+```
+#### 2.1.4 閲戜粨鏁版嵁搴撻厤缃�
+鏁版嵁搴撳悕绉颁互wvp涓轰緥
+```yaml
+spring:
+ datasource:
+ type: com.zaxxer.hikari.HikariDataSource
+ driver-class-name: com.kingbase8.Driver
+ url: jdbc:kingbase8://127.0.0.1:3306/wvp?useUnicode=true&characterEncoding=utf8
+ username: root
+ password: 12345678
+mybatis:
+ configuration:
+ map-underscore-to-camel-case: true
+pagehelper:
+ helper-dialect: postgresql
+```
### 2.2 Redis鏁版嵁搴撻厤缃�
閰嶇疆wvp涓殑redis杩炴帴淇℃伅锛屽缓璁畐vp鑷繁鍗曠嫭浣跨敤涓�涓猟b銆�
### 2.3 閰嶇疆鏈嶅姟鍚姩绔彛锛堝彲鐩存帴浣跨敤榛樿閰嶇疆锛�
diff --git a/src/main/resources/all-application.yml b/src/main/resources/all-application.yml
index 54d348d..2d20edd 100644
--- a/src/main/resources/all-application.yml
+++ b/src/main/resources/all-application.yml
@@ -43,6 +43,14 @@
idle-timeout: 300000 # 鍏佽杩炴帴鍦ㄨ繛鎺ユ睜涓┖闂茬殑鏈�闀挎椂闂达紙浠ユ绉掍负鍗曚綅锛�
max-lifetime: 1200000 # 鏄睜涓繛鎺ュ叧闂悗鐨勬渶闀跨敓鍛藉懆鏈燂紙浠ユ绉掍负鍗曚綅)
+# 淇敼涓烘暟鎹簱瀛楁涓嬪垝绾垮垎闅旂洿鎺ュ搴攋ava椹煎嘲鍛藉悕
+mybatis:
+ configuration:
+ map-underscore-to-camel-case: true
+
+# 淇敼鍒嗛〉鎻掍欢涓� postgresql锛� 鏁版嵁搴撶被鍨嬩负mysql涓嶉渶瑕�
+#pagehelper:
+# helper-dialect: postgresql
# [鍙�塢 WVP鐩戝惉鐨凥TTP绔彛, 缃戦〉鍜屾帴鍙h皟鐢ㄩ兘鏄繖涓鍙�
server:
--
Gitblit v1.8.0