在eclipse中运行maven项目,启动报错
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
检查没有发现缺少什么配置
发现还有个Deployment Assembly配置
右击项目选择 properties 找到 Deployment Assembly 选项
点击 Add 选择 Java Build Path Entries
点击Next 选择 Maven Dependencies
点击 Apply 重新运行项目即可