例如下列情况 明明 pom.xml 已经导入了,但外部库这里没有显示导入的包。 在 Spring MVC 中,web.xml 也无法解析到 org.springframework.web.servlet.DispatcherServlet 这个类。 解决方法 如有帮到你,可否点个赞。