|
|
|
@ -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: |
|
|
|
|