1.首先搭建redis服务器,这个可以用centos,或者windows
2.我用centos搭建好了单机服务,但是连接的时候,就是报下面的错误,不理解:
没有解决
org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.fetchJedisConnector(JedisConnectionFactory.java:204)
at org.springframework.data.redis.connection.jedis.JedisConnectionFactory.getConnection(JedisConnectionFactory.java:348)
at org.springframework.data.redis.core.RedisConnectionUtils.doGetConnection(RedisConnectionUtils.java:129)
at org.springframework.data.redis.core.
SpringCloud学习笔记016---在windows下搭建的Redis服务_在SpringBoot中使用Redis
最新推荐文章于 2024-05-01 21:19:57 发布