Sometimes, when we use redis in SpringBoot app, we got this Exception:
3. The solution
3.1 Increase the springboot redis connection timeout
You can increase the timeout of redis with this property:
This means the spring redis timeout is 30 seconds.
You can view the complete springboot properties from this document.