eclips 中jetty配置
安装run-jetty-run插件
另外一种方法是在eclipse中安装run-jetty-run插件,我觉得这种方式比较好,可以支持jetty7、8,安装方法如下:
在eclipse菜单栏,Run->Install new software->Add,输入地址:http://run-jetty-run.googlecode.com/svn/trunk/updatesite,如下图:

OK,然后勾选RunJettyRun即可

之后一步步安装即可。
安装之后连jetty都不需要安装,插件中带了jetty6、7、8。新建dynamic web project,右击工程,Run as->Run configuration:

(首次操作时,在run configuration里可能没有出现工程,点一下左上角的新建按钮即可)会有一套缺省的配置,根据需要修改端口和其他配置之后,run就可以了。配置详见
http://code.google.com/p/run-jetty-run/wiki/GettingStarted
http://code.google.com/p/run-jetty-run/wiki/RJRConfigurations
打开浏览器,输入地址http://localhost:8080/jettytest即可查看刚才的web工程.

浙公网安备 33010602011771号