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 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 51 insertions(+), 4 deletions(-) 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 閰嶇疆鏈嶅姟鍚姩绔彛锛堝彲鐩存帴浣跨敤榛樿閰嶇疆锛� -- Gitblit v1.8.0