1.修改生产环境配置

This commit is contained in:
2025-06-27 21:53:06 +08:00
parent 5bcb57013b
commit a6a9e46812
3 changed files with 11 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ spring:
# todo 需替换配置 # todo 需替换配置
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver 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 username: root
password: 123asd password: 123asd
# Redis 配置 # Redis 配置

View File

@@ -8,31 +8,28 @@ spring:
# todo 需替换配置 # todo 需替换配置
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver 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 username: root
password: 123asd password: wfn53400
# Redis 配置 # Redis 配置
# todo 需替换配置 # todo 需替换配置
redis: redis:
database: 1 database: 1
host: localhost host: localhost
port: 6379 port: 16379
timeout: 5000 timeout: 5000
password: 123456 password: ezyPM2UQkPO8O6i8s9
rabbitmq: rabbitmq:
host: localhost host: localhost
port: 5672 port: 5672
username: guest username: tkdata
password: guest password: 6rARaRj8Z7UG3ahLzh
listener: listener:
simple: simple:
acknowledge-mode: manual acknowledge-mode: manual
# Elasticsearch 配置 # Elasticsearch 配置
# todo 需替换配置 # todo 需替换配置
elasticsearch:
uris: http://localhost:9200
username: root
password: 123456
mybatis-plus: mybatis-plus:
configuration: configuration:
# 生产环境关闭日志 # 生产环境关闭日志
@@ -40,7 +37,7 @@ mybatis-plus:
# 接口文档配置 # 接口文档配置
knife4j: knife4j:
basic: basic:
enable: true enable: false
username: root username: root
password: 123456 password: 123456

View File

@@ -6,7 +6,7 @@ spring:
name: springboot-init name: springboot-init
# 默认 dev 环境 # 默认 dev 环境
profiles: profiles:
active: dev active: prod
# 支持 swagger3 # 支持 swagger3
mvc: mvc:
pathmatch: pathmatch:
@@ -87,7 +87,7 @@ cos:
bucket: xxx bucket: xxx
# 接口文档配置 # 接口文档配置
knife4j: knife4j:
enable: true enable: false
openapi: openapi:
title: "接口文档" title: "接口文档"
version: 1.0 version: 1.0