spring.redis.port=6379 spring.redis.host=127.0.0.1 spring.redis.password=123456 # 数据库索引(默认为0) spring.redis.database=15 #最大连接数(使用负值表示没有限制) spring.redis.jedis.pool.max-active=100 #最大空闲连接 spring.redis.jedis.pool.max-idle=8 #最小空闲连接 spring.redis.jedis.pool.min-idle=0 #最大阻塞等待时间(使用负值表示没有限制) spring.redis.jedis.pool.max-wait=60000 #连接超时时间 spring.redis.timeout=1000 换成yml格式
时间: 2023-12-18 08:03:27 浏览: 27
我可以帮你将这段配置转换成YAML格式的配置。下面是转换后的YAML格式配置:
```yaml
spring:
redis:
port: 6379
host: 127.0.0.1
password: 123456
database: 15
jedis:
pool:
max-active: 100
max-idle: 8
min-idle: 0
max-wait: 60000
timeout: 1000
```
你可以将这段配置复制到你的YAML配置文件中使用。如果还有其他问题,欢迎继续提问。