论坛首页 编程语言技术论坛

ServletContext cannot be resolved ServletException cannot be resolved

浏览 3093 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2017-01-12   最后修改:2017-01-12

ServletContext cannot be resolved ServletException cannot be resolved

 

 

Multiple markers at this line

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

- The type javax.servlet.ServletException cannot be resolved. It is indirectly referenced from required .class files

 

缺少servlet-api-xx.jar

 

maven依赖

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

 

 

论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics