This error happens when the loaded class i.e. ClassMetadataReadingVisitor
does not respect the contract of inherited abstract class or interface i.e. ClassVisitor
.
Looks like at load time different versions of the above classes are getting loaded in your case.
Seems you have new spring-core jar and old spring-asm jar in your application. ClassMetadataReadingVisitor
class is getting loaded from spring-core and ClassVisitor
from spring-asm.
Please check using maven dependency:tree
command to see the dependent jars.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…