Using Jetty in Eclipse

Source: Internet
Author: User
Tags web services

Using jetty in Eclipse is very simple and is basically consistent with other IDE configurations. In the past, if you want to debug Web services, you must be under the huge development of plug-ins, such as myeclipse, in fact, just need simple features, but have to accept a lot of infrequently used features. There is no way, now with jetty, if you only want to debug Web services, then please leave those huge development plug-ins. Simple things that are handled in a simple way.

First you create a Web project that I created with Maven, I like it with Maven, and I'm enjoying the convenience it brings. The directory structure of the following figure:

You do not need to place jar files in Web-inf because you are running in Eclipse and automatically adding jars in the corresponding classpath. Just need to put the corresponding JSP file in the WebApp.

Then add the corresponding Jetty.jar, originally I was using MAVEN directly increased, in order to clear the way, the use of manual increase. After all these jars, I was not required. The following figure

Related Article

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.