eclispe中的maven项目使用Spring整合Struts2时,报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener。但我可以百分百确定这个包已经引入了,但是它却一直找不到,后来百度到了一篇帖子,找到了解决办法,如下:
1. Add maven dependencies
Right click the web project “properties” -------> click the “Deployment Assembly” ---->
Click add button
Choose Java Build Path Entires ---> click Next
Choose Maven Dependencies------> Finish
2. Add project dependencies
Click add button
Choose Project-----> Click Next button
Choose your dependencies project -----> Click Finish button
That’s ok!