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

被折叠的 条评论
为什么被折叠?



