MyEclipse下用maven編譯項目釋出到tomcat,運作tomcat時出錯:ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener
搜了一把,有了:
1、項目上右擊Properties
2、找到MyEclipse節點 點選下面的Deployment Assembly
3、在右邊點Add
4、選中Maven Dependencies
5、點Finished
重新釋出一遍就OK了。
原因是:釋出時沒有把Maven的依賴包加入進去。這就是MyEclipse的盲點。