Program, how to integrate the Jetty server into the Eclipse development environment is the first thing to do. There are two ways to install Jetty in Eclipse through the network:
1. Integration using Server Adapter;
2. Use the Run-Jetty-Run plug-in for integration;
Here, we will introduce how to integrate the run-jetty-run plug-in:
Step 1: Install the Run-Jetty-Run plug-in, as shown in the following figure:
Search and install the run-jetty-run plug-in Eclipse Marketplace:
Select the component to be installed (select all). The run-jetty-run plug-in currently supports Jetty7 and Jetty8 versions:
Accept the license agreement and install the plug-in
After installation is complete, restart Eclipse.
Step 2: Test the plug-in, configure the Jetty runtime environment in the project, create a new Web project, right-click Run As-> Run Configuratiomns ...... :
Select Jetty version, Run:
Access the project through http: // localhost: 8080/JettyTest:
At this point, jetty is integrated into Eclipse using the run-Jetty-run plug-in.