BUG
spring-data-redis reported an error after restarting the project using @Cacheable
java.lang.ClassNotFoundException: com.xx.ARow$$BeanGeneratoryByCGLIB$$ae2df1ee
Solution: Use the cache to store the returned object, and check whether the returned object contains the class generated by reflection
The initial solution to this problem was to directly brute force flushall to clear all caches. Later, in order to reduce manual operations on the server, the root cause was started.
After a long investigation, the main direction has been wrong. Later, I looked at the cache results of redis and found that there are several prefixes of this class.
com.xx.ARow
com.xx.ARow$$BeanGeneratorByCGLIB$$1c0109b2
com.xx.ARow$$BeanGeneratorB