三步集成Jetty 与 Eclipse

本文介绍了如何在Eclipse环境中安装Jetty插件,创建Web应用,并通过Jetty运行应用的详细步骤。包括安装插件、新建动态Web项目以及配置运行设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Steps:

  1. Install Jetty Eclipse plugin
  2. Create web application
  3. Run web application

1 – Installing Jetty Eclipse Plugin

    1. When you add a server to the Servers view, you will not see an option for Jetty as you will find for Tomcat, JBoss, Apache, etc.
    2. First you need to install a plugin.
    3. Go to Eclipse -> Install new Software menu.
    4. Click on add and type Jetty for Name and http://run-jetty-run.googlecode.com/svn/trunk/updatesite for Location.
    5. Select the Jetty plugin to install. Click on Next and follow the installation:

      Creating a Web Application

      When you restart Eclipse, got o Project Explorer view or the New menu and click on New -> Dynamic Web Project:

      3 – Running the Web Application

      Select the application you want to run on Jetty.

      Click on the Run button -> Run Configurations.Configure your app on Jetty as shown in the picture bellow and click on Run:

 

转载于:https://www.cnblogs.com/discretemath/p/3457062.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值