Administrator
2025-12-09 b8c20d45e89c5bfaf1b3a791eec345d566eb467f
chore(config): 调整应用配置文件中的数据库和Redis连接设置

- 将 application.yml 中的默认配置从 app 切换为 test
- 更新 application-app.yml 数据库连接字符串及驱动类名
- 在 application-test.yml 中修改数据库地址、用户名和密码
- 修改 application-test.yml 中 Redis 服务器地址、端口和密码
- 更新 application-test.yml 中 RabbitMQ 的主机地址及认证信息
3 files modified
26 ■■■■ changed files
src/main/resources/application-app.yml 4 ●●●● patch | view | raw | blame | history
src/main/resources/application-test.yml 20 ●●●● patch | view | raw | blame | history
src/main/resources/application.yml 2 ●●● patch | view | raw | blame | history
src/main/resources/application-app.yml
@@ -7,10 +7,10 @@
  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}
src/main/resources/application-test.yml
@@ -5,11 +5,11 @@
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:
@@ -50,11 +50,11 @@
    # 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:
        # 连接池中的最小空闲连接
@@ -69,10 +69,10 @@
    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
src/main/resources/application.yml
@@ -7,7 +7,7 @@
  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