java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoader

1.在eclipse中查看是否有spring-web.jar包,如果沒有,在maven中導入此jar包,如果有,進行第二步。 2.檢測tomcat的下的部署項目中是否有lib文件夾,如果沒有,進行以下步驟: 右擊項目->properties->找到Deployment Assembly,右邊便是編譯打包的配置,看是不是缺少了lib庫的依賴,我的就是,點擊Add,選擇"Java Build Path
相關文章
相關標籤/搜索