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