Preliminary understanding of jetty, and how to debug with jetty in the project

Source: Internet
Author: User
Tags tomcat

Jetty Introduction

After Jetty7, it has been owned by Eclipse's products and its homepage is: http://wiki.eclipse.org/Jetty/

Jetty is a lighter and more flexible web container than tomcat, and we can use jetty to debug WebApp with Eclipse


Jetty Document Reading

Http://wiki.eclipse.org/Jetty this describes in detail all aspects of Jetty, such as several important aspects:

1. Embedded Sample Embedding Jetty

Jetty except that it can run independently like Tomcat, and can be embedded inside the program as an SDK invocation, Jetty has a famous saying: "T deploy your application in Jetty, deploy Jetty in your Application

2. Jetty can also be embedded in eclipse by run-jetty-run this eclipse plugin to run


Using MAVEN to introduce Jietty

Wiki article: Using Jetty with Eclipse in Build/ide integration details how to introduce Jetty Dependy, as follows:

   <!--TODO 1 Pick The version of jetty you want. -
   <properties>
       <jetty.version>7.1.6.v20100715</jetty.version>
   </ Properties>

   <!--TODO 2 Configure repo2.maven.org as a repository.-
   <repositories>
       < repository>
           <id>repo2_maven_org</id>
           <url>http://repo2.maven.org/maven2</url >
       </repository>
   </repositories>
    
   <!--TODO 3 Set up dependency to get the Jetty-server Artifact. -
   <dependencies>
       <dependency>
           <groupId>org.eclipse.jetty</groupId>
           <artifactId>jetty-server</artifactId>
           <version>${jetty.version}</version>
       </dependency>
   </dependencies>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.