1. 通过J2EE tools 2.项目右键-properties-project facets-勾选dynamic web moudle 转载于:https://www.cnblogs.com/pjlhf/p/8782651.html