在Eclipse左侧的Project Explorer 最右上角有一个小钮,鼠标移上去时提示"View Menu". 你点一下,在弹出的上下文菜单中选择"Customize View..." 弹出一个对话框. 你选择: Content 选项卡,在里面把没用的去掉就行了
一般将 Java EE Navigator Content WEB 勾掉,然后重启下eclipse: