java.lang.ClassNotFoundException:org.springframework.web.context.support.AnnotationConfigApplicationContext

时间:2013-05-08 13:56:34

标签: java spring maven

org.springframework.spring-webmvc includes spring-context所以我不确定为什么我在应用程序中没有看到org.springframework.web.context.support.AnnotationConfigApplicationContext

我错过了什么?

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${org.springframework-version}</version>
        <exclusions>
            <exclusion>
                <groupId>commons-logging</groupId>
                <artifactId>commons-logging</artifactId>
            </exclusion>
        </exclusions>
    </dependency>

1 个答案:

答案 0 :(得分:2)

确保您的maven依赖项包含在部署程序集中。请参阅:servlet packages not importing after converting project to maven project in eclipse