jsp 报错 The superclass "jakarta.servlet.http.HttpServlet" was not found on the Java Build
方式一:右键项目 选择 properties 添加运行时环境即可
方式二:如果是maven项目:
可以在pom.xml中加入
1 <dependency> 2 <groupId>javax.servletgroupId> 3 <artifactId>servlet-apiartifactId> 4 <version>2.5version> 5 <scope>providedscope> 6 dependency>