I am new to IntelliJ. I am trying to build a spring-mvc project with maven in IntelliJ. The IDE prompts that DispatchServlet is not found in web.xml. I have added the spring-webmvc (and the necessary dependencies) in pom. The solution in Eclipse is to add the maven dependencies in class build path, what's the solution in IntelliJ?