For those using Spring-boot-starter-data-redis
A permanent fix can be entered as follows:
- Determine the version of spring-boot-starter-data-redis. In
eclipse, you can mouse over the dependency entry in your pom.xml
file. It will tell you the version you are using.
- Navigate to that version directory in your maven repository.
- Edit the pom file and add the version number of redis client that is needed. In this case version 2.6.2.RELEASE to go with version
1.50 of spring-boot-starter-data-redis. In this case I had to add
2.6.2.RELEASE.
- In your IDE, refresh your entire project. To do this in eclipse or STS, click once on the project name->right click select maven->Update Project
- Check your maven dependencies list and the jedis version should now be 2.6.2.
- Compile your project.
- Open the .war archive with jar or 7-zip etc. Find the lib directory under WEB-INF and verify the presence of jedis-2.6.2.
That should resolve the issue.