說明項目沒有加載jar包
異常:Caused by: java.lang.NoClassDefFoundError: org/springframework/web/context/WebApplicationContext
解決方案:對着工程點右鍵->Properties ->MyEclipse-> Deployment Assembly -> Add--> Folder -->選擇 lib(eclipse中位於webContent下,myeclipse中位於webRoot下) --> apply
注意:我的jar都放在工程下的lib文件夾,這樣子tomcat運行時就不會報找不到class了