Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException

The error message is as follows.
Severe :Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions. JedisConnectionException: Could not get a resource from the pool] with root cause
Because the ip address on the linux system in the virtual machine has changed, the configuration file in springboot has forgotten to change it.
Enter [[email protected] bin]# ip addr to see the ip address
Just change the configuration file

Read More: