版权声明:本文为博主原创文章,转载请注明出处 https://blog.csdn.net/zhang_z_ming/article/details/84584621
说明项目没有加载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了