在项目->右击->Properties->Project Facets->Modify Project,选择Java和DynamicWeb Module 转载请注明出处: http://blog.csdn.net/qqyouhappy/article/details/51735195