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!

相關文章
相關標籤/搜索