热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_37202689
王大拿@
6 年前
trueweixin_37202689

解决springboot的redis一段时间不使用就连接超时的问题……

使用jedis它不香吗,哈哈。
如下配置,便能解决超时问题! <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> <exclusions> <exclusion> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency>

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
加油,打工人
立即登录