org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring.xml]; nested exception is java.lang.NoClassDefFoundError

这个异常是服务器在解析spring.xml文件时出现的异常,另外JVM又报了一个找不到此类的异常

出现原因:

1.spring.xml配置文件配置错误

2.lib文件夹下缺少了spring相关的jar包

可能是如下jar包:

aopalliance-1.0.jar

aspectjweaver-1.8.7.jar

spring-aop-4.2.4.RELEASE.jar

spring-aspects-4.2.4.RELEASE.jar

原文地址:https://www.cnblogs.com/leafarmyarmy/p/10448819.html