Eclipse下Tomcat使用相关

来源:互联网 发布:淘宝家用电器评语 编辑:程序博客网 时间:2024/06/10 21:25

  • Eclipse中配置外部tomcat的方法
  • 如果不小心删了Server工程
  • 给工程配置Servlet jar包

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

0 0
原创粉丝点击