👍 修改为本地数据库。
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
# 自定义数据库
|
||||
mysql:
|
||||
url: 47.108.56.75
|
||||
port: 3306
|
||||
vue-username: vue_pro
|
||||
vue-password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
bxg_username: vue_pro_bxg
|
||||
bxg_password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
server:
|
||||
port: 48080
|
||||
|
||||
@@ -42,56 +50,23 @@ spring:
|
||||
test-on-return: false
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:p6spy:mysql://192.168.10.250:3306/vue_pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
username: root
|
||||
password: root
|
||||
name: vue_pro
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: ${mysql.vue-username}
|
||||
password: ${mysql.vue-password}
|
||||
slave: # 模拟从库,可根据自己需要修改
|
||||
url: jdbc:p6spy:mysql://192.168.10.250:3306/vue_pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
username: root
|
||||
password: root
|
||||
name: vue_pro
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: ${mysql.vue-username}
|
||||
password: ${mysql.vue-password}
|
||||
bxg: # 农场数据源
|
||||
url: jdbc:p6spy:mysql://192.168.10.250:3306/vue_pro_bxg?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
username: root
|
||||
password: root
|
||||
erp: # 进销存
|
||||
url: jdbc:p6spy:mysql://192.168.10.250:3306/vue_pro_erp?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
username: root
|
||||
password: root
|
||||
farm: # 农场数据源
|
||||
url: jdbc:p6spy:mysql://192.168.10.250:3306/zsw-farm?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
username: root
|
||||
password: root
|
||||
# datasource:
|
||||
# master:
|
||||
# url: jdbc:p6spy:mysql://localhost:3306/vue_pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
# username: root
|
||||
# password: 123456
|
||||
# slave: # 模拟从库,可根据自己需要修改
|
||||
# url: jdbc:p6spy:mysql://localhost:3306/vue_pro?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
# username: root
|
||||
# password: 123456
|
||||
# bxg: # 农场数据源
|
||||
# url: jdbc:p6spy:mysql://localhost:3306/vue_pro_bxg?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
# username: root
|
||||
# password: 123456
|
||||
# erp: # 进销存
|
||||
# url: jdbc:p6spy:mysql://localhost/vue_pro_erp?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
# username: root
|
||||
# password: 123456
|
||||
# farm: # 农场数据源
|
||||
# url: jdbc:p6spy:mysql://localhost/zsw-farm?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
||||
# driver-class-name: com.p6spy.engine.spy.P6SpyDriver
|
||||
# username: root
|
||||
# password: 123456
|
||||
name: vue_pro_bxg
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: ${mysql.bxg-username}
|
||||
password: ${mysql.bxg-password}
|
||||
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
redis:
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
# 自定义数据库
|
||||
mysql:
|
||||
url: 127.0.0.1
|
||||
port: 3306
|
||||
vue-username: vue_pro
|
||||
vue-password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
bxg_username: vue_pro_bxg
|
||||
bxg_password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
server:
|
||||
port: 48080
|
||||
|
||||
@@ -47,28 +55,22 @@ spring:
|
||||
# ip: rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306
|
||||
master:
|
||||
name: vue_pro
|
||||
url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: vue_pro
|
||||
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
username: ${mysql.vue-username}
|
||||
password: ${mysql.vue-password}
|
||||
slave: # 模拟从库,可根据自己需要修改
|
||||
name: vue_pro
|
||||
url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: vue_pro
|
||||
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
username: ${mysql.vue-username}
|
||||
password: ${mysql.vue-password}
|
||||
bxg: # 农场数据源
|
||||
name: vue_pro_bxg
|
||||
url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
url: jdbc:mysql://${mysql.url}:${mysql.port}/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: vue_pro
|
||||
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
erp: # 农场数据源
|
||||
name: vue_pro_erp
|
||||
url: jdbc:mysql://rm-2zey92ofhilzm3p4j0o.mysql.rds.aliyuncs.com:3306/${spring.datasource.dynamic.datasource.erp.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: vue_pro
|
||||
password: CrnPu&g8HqbBikrA&DH-llRgtvpIrG#-
|
||||
username: ${mysql.bxg-username}
|
||||
password: ${mysql.bxg-password}
|
||||
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
redis:
|
||||
@@ -76,6 +78,9 @@ spring:
|
||||
port: 6379 # 端口
|
||||
database: 15 # 数据库索引
|
||||
|
||||
flowable:
|
||||
database-schema-update: false
|
||||
|
||||
--- #################### 定时任务相关配置 ####################
|
||||
|
||||
# Quartz 配置项,对应 QuartzProperties 配置类
|
||||
|
||||
Reference in New Issue
Block a user