From 19e10d0d6a54b2b0c1a8d4f52c84a18c089d0025 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期三, 20 三月 2024 10:33:43 +0800 Subject: [PATCH] 临时提交 --- doc/_content/introduction/config.md | 55 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 49 insertions(+), 6 deletions(-) diff --git a/doc/_content/introduction/config.md b/doc/_content/introduction/config.md index ba8d564..29f00a4 100644 --- a/doc/_content/introduction/config.md +++ b/doc/_content/introduction/config.md @@ -29,10 +29,53 @@ ``` 杩欎篃鏄垜鑷繁鏈�甯哥敤鐨勬柟寮忋�� ## 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 + +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 + +pagehelper: + helper-dialect: postgresql +``` ### 2.2 Redis鏁版嵁搴撻厤缃� 閰嶇疆wvp涓殑redis杩炴帴淇℃伅锛屽缓璁畐vp鑷繁鍗曠嫭浣跨敤涓�涓猟b銆� ### 2.3 閰嶇疆鏈嶅姟鍚姩绔彛锛堝彲鐩存帴浣跨敤榛樿閰嶇疆锛� @@ -110,11 +153,11 @@ # 鍥芥爣鏄惁褰曞埗 record-sip: true # 鏄惁灏嗘棩蹇楀瓨鍌ㄨ繘鏁版嵁搴� - logInDatebase: true + logInDatabase: true # 绗笁鏂瑰尮閰嶏紝鐢ㄤ簬浠巗tream閽熻幏鍙栨湁鏁堜俊鎭� thirdPartyGBIdReg: [\s\S]* ``` 濡傛灉閰嶇疆淇℃伅鏃犺锛屼綘鍙互鍚姩zlm锛屽啀鍚姩wvp鏉ユ祴璇曚簡锛屽惎鍔ㄦ垚鍔熺殑璇濓紝浣犲彲浠ュ湪wvp鐨勬棩蹇椾笅鐪嬪埌zlm宸茶繛鎺ョ殑鎻愮ず銆� -鎺ヤ笅鏉閮ㄧ讲鍒版湇鍔″櫒](./_content/introduction/deployment.md)锛� 濡備綍浣犲彧鏄湰鍦拌繍琛岀洿鎺ュ啀鏈湴杩愯鍗冲彲銆� +鎺ヤ笅鏉閮ㄧ讲鍒版湇鍔″櫒](./_content/introduction/deployment.md)锛� 濡傛灉浣犲彧鏄湰鍦拌繍琛岀洿鎺ュ湪鏈湴杩愯鍗冲彲銆� -- Gitblit v1.8.0