maven SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializ

从jdk6 升级到jdk7抛出

SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializ

将maven中

 <dependency>
            <groupId>javax.servletgroupId>
            <artifactId>javax.servlet-apiartifactId>
            <version>3.0.1version>
dependency>

修改为

<dependency>
            <groupId>javax.servletgroupId>
            <artifactId>javax.servlet-apiartifactId>
            <version>3.0.1version>
            <scope>providedscope>
dependency>

你可能感兴趣的:(eclipse)