Java Maven生成中缺少AbstractAnnotationConfigDispatchers ServletInitializer

Java Maven生成中缺少AbstractAnnotationConfigDispatchers ServletInitializer,java,eclipse,spring,maven,spring-mvc,Java,Eclipse,Spring,Maven,Spring Mvc,不管出于什么原因,maven没有构建 AbstractAnnotationConfigDispatcherServletInitializer 班级。下面是my pom.xml中包含必要的spring依赖项的相关部分: <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId&

不管出于什么原因,maven没有构建

AbstractAnnotationConfigDispatcherServletInitializer 
班级。下面是my pom.xml中包含必要的spring依赖项的相关部分:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>${org.springframework-version}</version>
        <exclusions>
            <!-- Exclude Commons Logging in favor of SLF4j -->
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
             </exclusion>
        </exclusions>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework-version}</version>
    </dependency>

org.springframework
spring上下文
${org.springframework版本}
公用记录
公用记录
org.springframework
SpringWebMVC
${org.springframework版本}
eclipse中显示的相关目录的构建如下所示:


它应该在包org.springframework.web.servlet.support下构建。我错过什么了吗?如何重建maven依赖项以获得此类?

WebAplicationInitializer的便利子类是在Spring 3.2.x中添加的,因此升级为3.2版本之一。(目前3.2.5.RELEASE是最新版本)。

您使用的是哪个spring版本?我使用的是3.1.1版本。该类是在3.2中添加的,因此您在spring 3.1中找不到它。如果您将其作为答案提交,我将接受它。谢谢你的帮助。