【代码优化】redis 配置

This commit is contained in:
puhui999 2025-03-18 17:36:44 +08:00
parent f118d66006
commit 38e8c85276
2 changed files with 11 additions and 10 deletions

View File

@ -109,11 +109,11 @@
<!-- </dependency>--> <!-- </dependency>-->
<!-- IoT 物联网相关模块。默认注释,保证编译速度 --> <!-- IoT 物联网相关模块。默认注释,保证编译速度 -->
<!-- <dependency>--> <dependency>
<!-- <groupId>cn.iocoder.boot</groupId>--> <groupId>cn.iocoder.boot</groupId>
<!-- <artifactId>yudao-module-iot-biz</artifactId>--> <artifactId>yudao-module-iot-biz</artifactId>
<!-- <version>${revision}</version>--> <version>${revision}</version>
<!-- </dependency>--> </dependency>
<!-- spring boot 配置所需依赖 --> <!-- spring boot 配置所需依赖 -->
<dependency> <dependency>

View File

@ -76,6 +76,7 @@ spring:
validation-query: SELECT SERVER_STATUS() # TDengine 数据源的有效性检查 SQL validation-query: SELECT SERVER_STATUS() # TDengine 数据源的有效性检查 SQL
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
data:
redis: redis:
host: 127.0.0.1 # 地址 host: 127.0.0.1 # 地址
port: 6379 # 端口 port: 6379 # 端口