用myeclipse导入项目后,项目上有个红叉,在Problems看到“Type Target runtime Apache Tomcat v7.0 is not defined”,于是找到解决办法:
项目右键---MyEclipse---Project Facets---页面右侧有个Runtimes,打开Runtimes页面,去掉里边的勾选项即可。