The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path问题的解决

it2022-05-08  8

这个问题的解决有二种解决办法:

1.加apache tomcat的运行环境即可

  选中项目点击右键

以上这种做法是在eclipse中的做法

2.如果是maven工程,还可以采用maven做法

就在这个工程的pom.xml配置文件中加入以下代码即可

<scope>元素的说明:范围  默认是compile

 

转载于:https://www.cnblogs.com/hwgok/p/8034933.html

相关资源:JAVA上百实例源码以及开源项目

最新回复(0)