STS中The type javax.servlet.ServletContext cannot

在pom.xml中添加;

 <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
      </dependency>

你可能感兴趣的:(STS中The type javax.servlet.ServletContext cannot)