1右击项目选择项目属性properties 2点击project facets,在右侧选中Dynamic Web Modules 打勾,并选择相应的版本,点击Apply 3确定后即可将 项目转为web项目