写项目的时候,有人用eclipse,而你用idea,整合的时候难免会有很多错误.接下来步入正题
File---->New--->Project from existing Source
选择项目的目录文件夹位置,选择导入的模型为Eclipse
接下来选择要导入的项目和确定
导入完毕在Project Structure中的Modeule中的Dependencies, 删除报红的模块
删掉那些爆红的
接着选择lib.
即Project Structure中的Libraries中选择lib ,即放jar包的位置
在Project Structure中Modules的Dependencies中, 添加该jar包
在Project Structure中Modules配置tomcat的jar包
.在Project Structure中Modules中的Dependencies中,配置tomcat的jar包
在Project Structure中的facets中,点击加号,选择web, 配置web.xml
然后配置web.xml和web目录
最后配置tomcat