java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetada

Spring框架BeanDefinition异常解析
本文探讨了Spring框架中BeanDefinitionStoreException异常的出现原因,特别是由于web项目的webroot下web-inf/lib目录中的jar包冲突导致的问题。进一步分析发现这是由于core和asm版本不一致引起的。

异常如下:

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [E:\apache-tomcat-8\apache-tomcat-8.0.32\webapps\EmdcAPPServer\WEB-INF\classes\com\healthlink\emdcApp\action\BoundAction.class]; nested exception is java.lang.IncompatibleClassChangeError: 

class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:301)

异常IncompatibleClassChangeError:的原因是web项目的webroot中web-inf的lib目录下的jar包冲突,存在同一个jar包的不同版本,或者是因为不同jar的版本冲突导致的

上述异常时core和asm版本不一样导致的

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值