Maven java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

    eclispe中的maven项目使用Spring整合Struts2时,报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener。但我能够百分百肯定这个包已经引入了,可是它却一直找不到,后来百度到了一篇帖子,找到了解决办法,以下: html

1.       Add maven dependencies   java

Right click the web project “properties” -------> click the “Deployment Assembly” ----> web

Click add button spring

 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

 

Choose Java Build Path Entires ---> click Next maven


 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c


 

Choose Maven Dependencies------>  Finish ui

 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c


 

2.       Add project dependencies url

  Click add button spa

 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c






Choose Project-----> Click Next button orm

 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

Choose your dependencies project -----> Click Finish button htm

 eclispe中的maven项目使用spring报java.lang.ClassNotFoundException: <wbr>org.springframework.web.c

That’s ok!

相关文章
相关标签/搜索