eclipse配置run-jetty-run插件

1.安装run-jetty-run插件
将附件中的runjettyrun_feature_1.3.1.jar和runjettyrun_1.3.1.jar拷入eclipse安装目录的plugins下。
重启eclipse,在Run->Run Configurations中会多出来一个Jetty Webapp菜单项

2.参考http://www.cnblogs.com/super-d2/p/3837415.html建立jetty测试项目

3.在Run->Run Configurations中右击Jetty Webapp,选择new,增加了一个jetty_test菜单项,配置Arguments为相应的jetty.xml。

4.右键项目,Run As->Run Jetty,即可在eclipse中运行。

5.在浏览器输入如下地址
http://localhost:8080/jetty_test/
显示:hello jetty! 中国!
http://localhost:8080/jetty_test/servlet/HelloWorldServlet
显示:hello world!

注:Debug->Debug Configurations可以配置调试模式

猜你喜欢

转载自belinda407.iteye.com/blog/2195477
run