用Eclipse开发项目的时候,把一个Web项目导入到Eclipse里会变成了一个java工程,将无法在Tomcat中进行部署运行,那我们就要将它转换为web项目。
方法:
1.右击项目项目-属性(properties)-项目方面(project facets)
2.勾选Dynamic Web Module和Java保存即可