无法在web.xml中解析Servlet

Gre*_*zur 6 java spring servlets maven tomcat7

由于某种原因想法灯调度程序servlet和我启动tomcat时得到404错误.我使用的是spring mvc和Maven,这是web.xml的图片web.xml中 感谢每个答案=)webapp/web.xml

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="
        http://java.sun.com/xml/ns/javaee
        http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">
    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>
</web-app>
Run Code Online (Sandbox Code Playgroud)

Gre*_*zur 5

发现问题了,当时用的tomcat7-maven-plugin是1.8的编译版本maven-compiler-plugin,改成1.7后问题就消失了。但是有没有类似的解决方案tomcat7-maven-plugin?因为我tomcat8-maven-plugin在互联网上没有找到

感谢大家的参与