Jedis, spring redis data integrated use, version exceptions and solutions.

Recently, there have been some problems in integrating and using redis spring redis

spring:3.2. 4.RELEASE

jedis: jedis 2.4. two

spring-data-redis: 1.5. 2.RELEASE

After n versions of various tosses have been changed, there are two main types of errors when starting:

Finally, the following configuration is OK:

After the version problem is solved, paste various configuration codes first:

spring:

Injection:

use:

After saving the value successfully, the saved value is:

this ok.  

Check the values in redis cli. The results are as follows:

Did you find one more prefix \ XAC \ xed \ X00 \ x05t \ X00 \ B

This is a serialization problem: http://blog.csdn.net/yunhaibin/article/details/9001198

reference material:

http://zhaobing315.iteye.com/blog/2082189

http://www.cnblogs.com/tankaixiong/p/3660075.html

http://www.sxt.cn/u/2839/blog/4363

http://www.cnblogs.com/tankaixiong/p/3660075.html

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>