|
@@ -48,7 +48,7 @@ spring:
|
|
|
primary: master
|
|
|
datasource:
|
|
|
master:
|
|
|
- name: ruoyi-vue-pro2
|
|
|
+ name: ruoyi-vue-pro
|
|
|
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例
|
|
|
# url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例
|
|
|
# url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.master.name} # PostgreSQL 连接的示例
|
|
@@ -59,7 +59,7 @@ spring:
|
|
|
# username: sa
|
|
|
# password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W
|
|
|
slave: # 模拟从库,可根据自己需要修改
|
|
|
- name: ruoyi-vue-pro2
|
|
|
+ name: ruoyi-vue-pro
|
|
|
lazy: true # 开启懒加载,保证启动速度
|
|
|
url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例
|
|
|
# url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例
|
|
@@ -75,8 +75,8 @@ spring:
|
|
|
redis:
|
|
|
host: 127.0.0.1 # 地址
|
|
|
port: 6379 # 端口
|
|
|
- database: 5 # 数据库索引
|
|
|
- password: 123456 # 密码,建议生产环境开启
|
|
|
+ database: 0 # 数据库索引
|
|
|
+# password: dev # 密码,建议生产环境开启
|
|
|
|
|
|
--- #################### 定时任务相关配置 ####################
|
|
|
|
|
@@ -174,8 +174,8 @@ debug: false
|
|
|
--- #################### 微信公众号、小程序相关配置 ####################
|
|
|
wx:
|
|
|
mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
|
|
|
-# app-id: wx041349c6f39b268b
|
|
|
-# secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
|
+ # app-id: wx041349c6f39b268b
|
|
|
+ # secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
|
app-id: wx5b23ba7a5589ecbb # 测试号
|
|
|
secret: 2a7b3b20c537e52e74afd395eb85f61f
|
|
|
# 存储配置,解决 AccessToken 的跨节点的共享
|
|
@@ -184,8 +184,8 @@ wx:
|
|
|
key-prefix: wx # Redis Key 的前缀
|
|
|
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
|
|
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
|
|
|
-# appid: wx62056c0d5e8db250
|
|
|
-# secret: 333ae72f41552af1e998fe1f54e1584a
|
|
|
+ # appid: wx62056c0d5e8db250
|
|
|
+ # secret: 333ae72f41552af1e998fe1f54e1584a
|
|
|
appid: wx63c280fe3248a3e7 # wenhualian的接口测试号
|
|
|
secret: 6f270509224a7ae1296bbf1c8cb97aed
|
|
|
config-storage:
|