当前位置:藏獒宠物网>百科>综合>正文

spring怎么配置redis的密码

人气:205 ℃/2023-08-19 09:23:49

1、spring配置,下面是一个完整redis配置,密码只需要设置password属性。 –> –> 2、java操作redis,只需要加上jedis.auth(passwd)即可 public static Jedis getRedisConnection(String configFlag){ String host; int port; Jedis jedis = null;

搜索更多有关“spring怎么配置redis的密码”的信息 [百度搜索] [SoGou搜索] [头条搜索] [360搜索]
CopyRight © 2009-2024 藏獒宠物网 All Rights Reserved. 手机版