Caused by: java.io.CharConversionException: Invalid UTF-32 character 0x22776961 (above 0x0010ffff) a

redisTemplate取值报错org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Invalid UTF-32 character 0x22776961 (above 0x0010ffff) at char #15, byte #63); nested exception is java.io.CharConversionException: Invalid UTF-32 character 0x22776961 (above 0x0010ffff) at char #15, byte #63)

Looking at the storage code, there is no problem at all, but there is a problem when fetching the value.
Insert picture description here
In fact, the problem lies in the process of saving the value, as shown in the figure:
Insert picture description here
OK! Plus the expiration time type, re-storage, and value; the problem is solved perfectly

Guess you like

Origin blog.csdn.net/xaiobaicai/article/details/112875183