把项目引入javaee的解决方法
①本地文件,是通过解压之后的文件
File->import->Existing~存在的文件->select root directory(找到文件所在路径)->finish即可
②.git文件,在eclipse上导入Git项目
File->import->git->next 输入克隆地址
选择分支master
配置本地项目存放路径,Next
选择Import existing projects(单分支),选择Import as general projects(多分支),finish,成功导入。
Tips①: 报错: The content of element type "configuration" must match "(properties?,setting
是你的标签顺序不正确
详情参考介绍
Tips②:
Could not load the Tomcat server configuration at \Servers\Tomcat v9.0 Serve
无法在\servers\tomcat v9.0服务器上加载tomcat服务器配置
是因为在eclipse运行用server运行JSP出现了该报错,可能是之前tomcat运行时强制关闭了eclipse所致的
解决方案:在server视图下删掉之前建的服务器再重新建一个
步骤:点击工具栏windows—>preference----->Server----->Runtime environments,查看右侧是否有tomcat