redis serilize settings:
enter image description here
enter image description here
exception is not catch content, so I think the exception is throwed by ‘redisTemplate.opsForValue().get(key)’
exception:
enter image description here
org.springframework.data.redis.serializer.SerializationException: Could not deserialize: not close json text, token : ]; nested exception is com.alibaba.fastjson.JSONException: not close json text, token : ], Could not deserialize: not close json text, token : ]; nested exception is com.alibaba.fastjson.JSONException: not close json text, token : ]
I userd convert User convert to JSON, But Higher probability of the exception,
so I tryed save User to redis directly
youhui is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.