保存,项目构建完成后在项目文件夹上点右键,选择Maven->Update Project Configuration,问题解决。 转载于:https://www.cnblogs.com/Mockingjays/p/5652464.html