SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer

来源:互联网 发布:sk5转代理软件 编辑:程序博客网 时间:2024/06/05 17:13

spring框架和 jdk 容器冲突 maven项目中的pom加入 

<dependency>    <groupId>javax.servlet</groupId>    <artifactId>javax.servlet-api</artifactId>    <version>3.0.1</version>    <scope>provided</scope></dependency>
就好了

0 0