1.右键项目,Install Dynamic Web Module Facet
2.确定
3.选择运行环境
4.设置路径
5.设置部署
maven项目转成web项目
原文:http://www.cnblogs.com/fuyuanming/p/5092298.html