eclipse configure run-jetty-run plugin

1. Install the run-jetty-run plugin
Copy the runjettyrun_feature_1.3.1.jar and runjettyrun_1.3.1.jar in the attachment into the plugins of the eclipse installation directory.
Restart eclipse, there will be an additional Jetty Webapp menu item in Run->Run Configurations

2. Refer to http://www.cnblogs.com/super-d2/p/3837415.html to create a jetty test project

3. In Run-> Right-click Jetty Webapp in Run Configurations, select new, add a jetty_test menu item, and configure Arguments as the corresponding jetty.xml.

4. Right-click the project, Run As->Run Jetty, you can run it in eclipse.

5. Enter the following address in the browser
http://localhost:8080/jetty_test/
display: hello jetty! China!
http://localhost:8080/jetty_test/servlet/HelloWorldServlet
display: hello world!

Note: Debug->Debug Configurations Configurable debug mode

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326360337&siteId=291194637
Recommended