战斗任务消耗资源代码

This commit is contained in:
wangwenhua 2025-09-19 12:23:59 +08:00
parent 9c8c10f3c0
commit 1b96fda87d
2 changed files with 13 additions and 6 deletions

10
pom.xml
View File

@ -56,11 +56,11 @@
<artifactId>lettuce-core</artifactId>
<version>6.2.4.RELEASE</version>
</dependency>-->
<!-- <dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.12.0</version> &lt;!&ndash; 建议使用最新稳定版本 &ndash;&gt;
</dependency>-->
<version>2.12.0</version> <!-- 建议使用最新稳定版本 -->
</dependency>
<!-- <dependency>-->
<!-- <groupId>mysql</groupId>-->
@ -190,11 +190,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<!-- <dependency>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
<version>6.2.4.RELEASE</version>
</dependency>
</dependency>-->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>

View File

@ -10,7 +10,14 @@ spring.redis.host=192.168.0.53
spring.redis.port=6379
#spring.redis.password=123
spring.redis.timeout=5000
spring.redis.lettuce.shutdown-timeout=5000
#spring.redis.lettuce.timeout=5000
spring.redis.lettuce.pool.max-active=8
spring.redis.lettuce.pool.max-idle=8
spring.redis.lettuce.pool.min-idle=0
spring.redis.lettuce.pool.max-wait=2000ms
spring.redis.lettuce.pool.timeout=5000ms # 命令执行超时
spring.redis.lettuce.pool.connect-timeout=10000ms # 连接建立超时
server.port=8099