jsp 报错 The superclass "jakarta.servlet.http.HttpServlet" was not found on the Java Build Path

方式一:右键项目  选择 properties  添加运行时环境即可

 

方式二:如果是maven项目:

可以在pom.xml中加入

 1 <dependency>
 2             <groupId>javax.servlet</groupId>
 3             <artifactId>servlet-api</artifactId>
 4             <version>2.5</version>
 5             <scope>provided</scope>
 6         </dependency>
 
posted @ 2022-03-30 11:32  啄木鸟伍迪  阅读(2638)  评论(0)    收藏  举报
//火箭 GenerateContentList();