一、安装Eclipse Java Web Developer Tools插件
1、eclipse菜单:help/install New Software,打开Available Software窗体;
2、Available Software窗体:Work with下拉框中选择mars - http://download.eclipse.org/releases/mars项,mars是eclipse版本,可能有所不同;
3、待Pending...完成后,会显示可选装的插件列表,如果不勾选Contact all update sites during install to required software复选框的话,会快些;
4、找到Web, XML, Java EE and OSGi Enterprise Development项,展开,选择Eclipse Java Web Developer Tools和Eclipse Java EE Developer Tools两项,装上。