Solve the bug: restart the project: java.lang.ClassNotFoundException: com.xx.ARow$$BeanGeneratorByCGLIB$$ae2df1

BUG

spring-data-redis reported an error after restarting the project using @Cacheable

java.lang.ClassNotFoundException: com.xx.ARow$$BeanGeneratoryByCGLIB$$ae2df1ee

insert image description here

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

Supongo que te gusta

Origin blog.csdn.net/weixin_45752941/article/details/112620755
Recomendado
Clasificación