Problem description
Using redis to cache data, it can be successfully saved to redis
The serialization format of the value used is: genericjackson2jsonredisserializer
, but the error is obtained from the cache for the second time
Key error message, suggesting no constructor
org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Cannot construct instance of `io.renren.common.utils.PageUtils` (no Creators, like default construct, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
Problem-solving:
The first method directly changes the serialization of value to string type. The second method adds an empty parameter structure
The second method is adopted. The disadvantage of the first method is that Chinese information may be escaped
Read More:
- [Solved] Redis—-(error) MISCONF Redis is configured to save RDB snapshots
- Redis cannot double-click redis-server.exe to start normally
- Error reported when springboot connects to redis nested exception is redis.clients.jedis . exceptions.JedisConnectionException
- [Solved] Redis Execute redis-cli shutdown Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- [Solved] springmvc:Error creating bean with name ‘org.springframework.cache.interceptor.CacheInterceptor
- [Solved] Error in integrating redis with springboot: unable to connect to redis
- [Solved] Lumen Error: Class redis does not exist
- Redis Exception | DENIED Redis is running in protected mode because protected mode is enabled
- Redis Cluster Error: (error) CLUSTERDOWN Hash slot not served
- Cache penetration, cache breakdown and cache avalanche solutions
- [Solved] (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- [Solved] redis.exceptions.ResponseError: unknown command `KEYS`
- [Solved] Mac starts redis error: there is no specified conf file
- [Solved] SyntaxError:JSON.parse:unexpected character at line 1 column 1 of the JSON data
- [Solved] SpringBoot integration with Redis error: java.net.ConnectException: Connection refused: no further information
- When integrating redis with SSM framework, error creating bean with name ‘rediscontentserviceimpl’ defined in file
- [Solved] Redis executes the monitor command error: noauth authentication required
- How to Solve Redis Cluster Error: (Error) Moved
- Redis Error: (error) ERR Errors trying to SHUTDOWN. Check logs.
- How to Solve Chrome error: ERR_CACHE_READ_FAILURE