右键项目->Properties->Web Project Settings 将“Context root”改为你的项目名称 转载于:https://www.cnblogs.com/sayy/p/4446462.html