1、右鍵選擇項目使用maven -> Update Project
2、選擇項目->右鍵Properties , 配置 Dynamic.
3、提示找不到 org.springframework.web.servlet.DispatcherServlet
(1)、選中項目 -> 右鍵 Properties,如下圖:
(2)、選擇 Deployment Assemby ->選擇 Add
(3)、選中Java Build Path Entries -> Next ->選擇 Maven Dependencies ->Finish->Apply->OK 就可以解決問題。