The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required

解决办法,maven依赖添加:

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


你可能感兴趣的:(The type javax.servlet.ServletContext cannot be resolved. It is indirectly referenced from required)