From d6fd8768af43666f2ed9f64b4fe1a91b1c4d3f28 Mon Sep 17 00:00:00 2001 From: xm <1350250847@qq.com> Date: Sat, 9 May 2026 12:32:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 12 ++++---- src/main/resources/application-local.yml | 36 ++++++++++++++++++++++++ src/main/resources/application.yml | 11 ++++---- 3 files changed, 48 insertions(+), 11 deletions(-) create mode 100644 src/main/resources/application-local.yml diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 6de8d14..41fb8f5 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -6,17 +6,17 @@ spring: allow-circular-references: true allow-bean-definition-overriding: true # 允许bean定义覆盖,解决RabbitMQConfig中的objectMapper bean冲突 datasource: - url: jdbc:mysql://47.107.249.41:13306/gxwebsoft_core?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 + url: jdbc:mysql://1Panel-mysql-XsWW:3306/gxwebsoft_core?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 username: gxwebsoft_core password: ZXT5FkBREBJQPiAs driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource - redis: - database: 0 - host: 8.134.55.105 - port: 16379 - password: redis_t74P8C + redis: + database: 0 + host: 1Panel-redis-GmNr + port: 6379 + password: redis_t74P8C # 日志配置 logging: diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml new file mode 100644 index 0000000..bebcc07 --- /dev/null +++ b/src/main/resources/application-local.yml @@ -0,0 +1,36 @@ +# 开发环境配置 + +# 数据源配置 +spring: + main: + allow-circular-references: true + allow-bean-definition-overriding: true # 允许bean定义覆盖,解决RabbitMQConfig中的objectMapper bean冲突 + datasource: + url: jdbc:mysql://47.107.249.41:13306/gxwebsoft_core?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8 + username: gxwebsoft_core + password: ZXT5FkBREBJQPiAs + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + + redis: + database: 0 + host: localhost + port: 6379 + +# 日志配置 +logging: + level: + com.gxwebsoft: DEBUG + com.baomidou.mybatisplus: DEBUG + +socketio: + host: localhost #IP地址 + +# 框架配置 +config: + # 开发环境接口 + server-url: http://127.0.0.1:9090/api + upload-path: /Users/gxwebsoft/Documents/uploads + +#swagger: +#host: https://server.websoft.top/swagger-ui/index.html diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 9e1f787..9e5a09a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,6 +8,7 @@ socketio: spring: profiles: active: dev +# active: local application: name: server @@ -56,11 +57,11 @@ spring: multipart: max-file-size: 500MB max-request-size: 500MB - redis: - database: 0 - host: 1Panel-redis-GmNr - port: 6379 - password: redis_t74P8C +# redis: +# database: 0 +# host: 1Panel-redis-GmNr +# port: 6379 +# password: redis_t74P8C # RabbitMQ 配置 # rabbitmq: