chore(config): 调整应用配置文件中的数据库和Redis连接设置
- 将 application.yml 中的默认配置从 app 切换为 test
- 更新 application-app.yml 数据库连接字符串及驱动类名
- 在 application-test.yml 中修改数据库地址、用户名和密码
- 修改 application-test.yml 中 Redis 服务器地址、端口和密码
- 更新 application-test.yml 中 RabbitMQ 的主机地址及认证信息
| | |
| | | profiles: |
| | | active: app |
| | | datasource: |
| | | url: jdbc:mysql://127.0.0.1:3306/db_base?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&allowMultiQueries=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2b8 |
| | | url: jdbc:mysql://127.0.0.1:3306/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_base |
| | | password: P@ssw0rd!123 |
| | | driver-class-name: com.mysql.cj.jdbc.Driver |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | | initial-size: ${spring_datasource_druid_initial_size:10} |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: test |
| | | active: app |
| | | datasource: |
| | | 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 |
| | | url: jdbc:mysql://47.76.217.51:3306/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: db_base |
| | | password: P@ssw0rd!123 |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | |
| | | # Redis数据库索引(默认为 0) |
| | | database: 13 |
| | | # Redis服务器地址 |
| | | host: 120.27.238.55 |
| | | host: 47.76.217.51 |
| | | # Redis服务器连接端口 |
| | | port: 6479 |
| | | port: 6379 |
| | | # Redis 密码 |
| | | password: d3y6dsdl;f.327 |
| | | password: lianghua1!qaz2@WSX |
| | | lettuce: |
| | | pool: |
| | | # 连接池中的最小空闲连接 |
| | |
| | | timeout: 500000 |
| | | |
| | | rabbitmq: |
| | | host: 120.27.238.55 |
| | | host: 47.76.217.51 |
| | | port: 5672 |
| | | username: ct_rabbit |
| | | password: 123456 |
| | | username: lianghua20210816 |
| | | password: lianghua20210816 |
| | | publisher-confirm-type: correlated |
| | | |
| | | |
| | |
| | | OKEX: |
| | | baseurl: https://www.okex.com |
| | | profiles: |
| | | active: app |
| | | active: test |
| | | datasource: |
| | | url: jdbc:mysql://120.27.238.55:3406/db_base?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8 |
| | | username: ct_test |