From a6a9e46812653b9ba145d310c16acebc12227658 Mon Sep 17 00:00:00 2001 From: Ziin Date: Fri, 27 Jun 2025 21:53:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E7=94=9F=E4=BA=A7=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 2 +- src/main/resources/application-prod.yml | 19 ++++++++----------- src/main/resources/application.yml | 4 ++-- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 6521556..16843e6 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -8,7 +8,7 @@ spring: # todo 需替换配置 datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true + url: jdbc:mysql://47.79.98.113:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true username: root password: 123asd # Redis 配置 diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index b46a616..05e599b 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -8,31 +8,28 @@ spring: # todo 需替换配置 datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true + url: jdbc:mysql://localhost:3326/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true username: root - password: 123asd + password: wfn53400 # Redis 配置 # todo 需替换配置 redis: database: 1 host: localhost - port: 6379 + port: 16379 timeout: 5000 - password: 123456 + password: ezyPM2UQkPO8O6i8s9 rabbitmq: host: localhost port: 5672 - username: guest - password: guest + username: tkdata + password: 6rARaRj8Z7UG3ahLzh listener: simple: acknowledge-mode: manual # Elasticsearch 配置 # todo 需替换配置 - elasticsearch: - uris: http://localhost:9200 - username: root - password: 123456 + mybatis-plus: configuration: # 生产环境关闭日志 @@ -40,7 +37,7 @@ mybatis-plus: # 接口文档配置 knife4j: basic: - enable: true + enable: false username: root password: 123456 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index b22db84..541dfc3 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,7 +6,7 @@ spring: name: springboot-init # 默认 dev 环境 profiles: - active: dev + active: prod # 支持 swagger3 mvc: pathmatch: @@ -87,7 +87,7 @@ cos: bucket: xxx # 接口文档配置 knife4j: - enable: true + enable: false openapi: title: "接口文档" version: 1.0