From 948a8afec19c49c4acd6a3e0a2ea61dbe6e14bd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Thu, 18 Dec 2025 11:10:04 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E8=B0=83=E6=95=B4=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改服务器端口为 9200 - 将默认激活环境改为 dev - 更新开发环境数据库连接信息 - 注释掉旧的生产环境数据源配置 - 调整生产环境数据库地址端口 - 修正定时任务表达式格式问题 --- src/main/resources/application-dev.yml | 15 +++++++++++---- src/main/resources/application-prod.yml | 4 ++-- src/main/resources/application.yml | 4 ++-- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 4b46b37..b83b2b5 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,13 +1,20 @@ # 开发环境配置 - +server: + port: 9200 # 数据源配置 spring: datasource: - url: jdbc:mysql://47.119.165.234:3308/open_ws?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 - username: open_ws - password: DzAmFiZfPJ6ZGApm + url: jdbc:mysql://47.107.122.174:3308/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 + username: yunxinwei + password: A56sK6aW2FA3wBy2 driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource +# datasource: +# url: jdbc:mysql://47.119.165.234:3308/open_ws?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 +# username: open_ws +# password: DzAmFiZfPJ6ZGApm +# driver-class-name: com.mysql.cj.jdbc.Driver +# type: com.alibaba.druid.pool.DruidDataSource # 日志配置 logging: diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index fd2c952..70ab20c 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -3,7 +3,7 @@ # 数据源配置 spring: datasource: - url: jdbc:mysql://1.14.159.185:3318/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 + url: jdbc:mysql://47.107.122.174:3318/yunxinwei?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 username: yunxinwei password: A56sK6aW2FA3wBy2 driver-class-name: com.mysql.cj.jdbc.Driver @@ -47,4 +47,4 @@ config: cron: alert: 0 30 9 * * ? profit: 0 0/2 * * * ? - timeoutOrder: 1 0 0 * * ? \ No newline at end of file + timeoutOrder: 1 0 0 * * ? diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index a20aaa6..ef9c873 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,13 +1,13 @@ # 端口 server: - port: 9090 + port: 9200 # socketIo socketio: port: 9190 # 多环境配置 spring: profiles: - active: prod + active: dev # json时间格式设置 jackson: time-zone: GMT+8