maven项目出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误
首先先贴图,查看我们的错误是否相同,一般是相同的哈。
然后是,查看我们的web.xml文件中监听代码:
好了经过以上的对比,应该是大致确定是不是相同问题了。废话少说直接出解决方法:
右键项目->properties->Deployment Assembly->add->Java Build Path Entries->Maven
原因,就是因为没有引入jar包,引入就好了。