From 8ab582d5748349f5f4db41ac058cd923aee3ccaa Mon Sep 17 00:00:00 2001 From: tongtongstudio Date: Wed, 30 Jul 2025 19:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E7=A0=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-debug.properties | 12 ++++++------ src/main/resources/application.properties | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/resources/application-debug.properties b/src/main/resources/application-debug.properties index 6ea7f87..c9fdfc5 100644 --- a/src/main/resources/application-debug.properties +++ b/src/main/resources/application-debug.properties @@ -1,22 +1,22 @@ spring.application.name=VideoTablet server.port=8088 -## mysql ?????? +## mysql 数据连接信息 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver #spring.datasource.url=jdbc:mysql://139.199.77.221:3306/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false spring.datasource.url=jdbc:mysql://127.0.0.1:3305/video_tablet_db?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true spring.datasource.username=tt spring.datasource.password=fanhuitong -# redis???? -# 0????????????? Redis ??????? +# redis基础配置 +# 0也是默认值,表示你要操控的 Redis 上的哪个数据库 spring.data.redis.database=0 -# 6379???????? Redis ?? +# 6379也是默认值,表示 Redis 端口 spring.data.redis.port=6379 -# ??????????? +# 这里填写你的服务器地址 spring.data.redis.host=127.0.0.1 spring.data.redis.password=fanhuitong -# ??? +# 可省略 spring.data.redis.lettuce.pool.min-idle=5 spring.data.redis.lettuce.pool.max-idle=10 spring.data.redis.lettuce.pool.max-active=8 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1146245..ccb2bcd 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,3 @@ # application.properties -# ???????? +# 默认激活生产环境 spring.profiles.active=debug