Eclipse中配置外部tomcat的方法:
Windw- > Preferences -> Server -> Runtime Environments 中进行设置,增加一个tomcat运行环境。
如果不小心删了Server工程。
点击window– show view - other 找到servers 添加即可
给工程配置Servlet jar包
我们在用Eclipse进行Java web开发时,可能会出现这样的错误:The superclass javax.servlet.http.HttpServlet was not found on the Java Build Path。我们该怎么解决这个问题呢?
工程右键–Build Path–Add Library–Server Runtime