或者在eclipse中,右键项目名称->Maven->Add Dependency->输入servlet,会自动找到最新的版本(记得联网哦),如图: 转载于:https://www.cnblogs.com/ZHONGZHENHUA/p/6260717.html