右键项目-properties-java build path -libraries->remove(显示红叉的)->add Library -JRE -Server runtime 之后再刷新整个项目。 相关文章: