springboot+redis integration

1. The code has been released, see: https://gitee.com/xszhangmin/springboot-redis-demo

2. I encountered a problem when running the unit test: redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool, the error of connection refused has been reported, and I checked it and found the reason.

The configuration file of Redis is bound to the local ip by default. The solution is to comment out bind 127.0.0.1 in the redis.conf file of Redis.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325079681&siteId=291194637