运行时,控制台报错:class not found:org.springframework.web.servlet.DispatcherServlet 归根结底,是缺少jar包。 可能你已经在buildpath中把jar包引入了,但是你的web项目中还有lib文件夹,把这些jar包copy到lib文件夹中即可。 如下图所示: 就这样,嗯。 转载于:https://my.oschina.net/u/2275839/blog/380336