问题:运行项目时,eclipse提示The given project is not a virtual component project 解决:选择项目右键property > project facets , 选择对应的java版本,应该就ok了。