SpringBoot2.0配置redis相關

SpringBoot2.0中redis的配置redis

REDIS (RedisProperties)

Redis數據庫索引(默認爲0)

spring.redis.database=0spring

Redis服務器地址

spring.redis.host=localhost數據庫

Redis服務器鏈接端口

spring.redis.port=6379服務器

Redis服務器鏈接密碼(默認爲空)

spring.redis.password=索引

鏈接池最大鏈接數(使用負值表示沒有限制)

spring.redis.jedis.pool.max-active=8it

鏈接池最大阻塞等待時間(使用負值表示沒有限制)

spring.redis.jedis.pool.max-wait=-1配置

鏈接池中的最大空閒鏈接

spring.redis.jedis.pool.max-idle=8密碼

鏈接池中的最小空閒鏈接

spring.redis.jedis.pool.min-idle=0im

鏈接超時時間(毫秒)

spring.redis.timeout=5000數據

相關文章
相關標籤/搜索