config(test): 更新测试环境配置文件
- 将激活配置文件从 test 更改为 app
- 更新数据库连接地址从本地到新服务器 120.27.238.55:3406
- 更新 Redis 配置数据库从 8 到 13,主机从本地到 120.27.238.55,端口从 6379 到 6479,密码更新
- 更新 RabbitMQ 配置主机从本地到 120.27.238.55,用户名从 xc_rabbit 到 ct_rabbit,密码更新
- 注释掉旧的 Redis 和 RabbitMQ 配置块作为备份参考
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: test |
| | | active: app |
| | | datasource: |
| | | url: jdbc:mysql://127.0.0.1:3306/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | #url: jdbc:mysql://43.165.176.118:3306/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | url: jdbc:mysql://120.27.238.55:3406/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |
| | | password: 123456 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | |
| | | messages: |
| | | basename: i18n/messages |
| | | ## redis配置 |
| | | ## redis配置 |
| | | redis: |
| | | # Redis数据库索引(默认为 0) |
| | | database: 8 |
| | | database: 13 |
| | | # Redis服务器地址 |
| | | host: 127.0.0.1 |
| | | host: 120.27.238.55 |
| | | # Redis服务器连接端口 |
| | | port: 6379 |
| | | port: 6479 |
| | | # Redis 密码 |
| | | password: 1234!@#$!QAZ |
| | | password: d3y6dsdl;f.327 |
| | | lettuce: |
| | | pool: |
| | | # 连接池中的最小空闲连接 |
| | |
| | | timeout: 500000 |
| | | |
| | | rabbitmq: |
| | | host: 127.0.0.1 |
| | | host: 120.27.238.55 |
| | | port: 5672 |
| | | username: xc_rabbit |
| | | password: xuncong123 |
| | | username: ct_rabbit |
| | | password: 123456 |
| | | publisher-confirm-type: correlated |
| | | # redis: |
| | | # # Redis数据库索引(默认为 0) |
| | | # database: 8 |
| | | # # Redis服务器地址 |
| | | # host: 43.165.176.118 |
| | | # # Redis服务器连接端口 |
| | | # port: 6379 |
| | | # # Redis 密码 |
| | | # password: 1234!@#$!QAZ |
| | | # lettuce: |
| | | # pool: |
| | | # # 连接池中的最小空闲连接 |
| | | # min-idle: 8 |
| | | # # 连接池中的最大空闲连接 |
| | | # max-idle: 500 |
| | | # # 连接池最大连接数(使用负值表示没有限制) |
| | | # max-active: 2000 |
| | | # # 连接池最大阻塞等待时间(使用负值表示没有限制) |
| | | # max-wait: 10000 |
| | | # # 连接超时时间(毫秒) |
| | | # timeout: 500000 |
| | | # |
| | | # rabbitmq: |
| | | # host: 43.165.176.118 |
| | | # port: 5672 |
| | | # username: xc_rabbit |
| | | # password: xuncong123 |
| | | # publisher-confirm-type: correlated |
| | | |
| | | |
| | | #custom: |