网上很多,但个人情况又不尽相同,遂做个记录
1.点击导入
idea2019 导入 Myeclipse web项目 架包配置 非maven
2.选择你的项目
idea2019 导入 Myeclipse web项目 架包配置 非maven

3.选择eclipse 然后点击next
idea2019 导入 Myeclipse web项目 架包配置 非maven
4.idea2019 导入 Myeclipse web项目 架包配置 非maven

5.紧接着4后一直next到此界面,选择你的jdk
idea2019 导入 Myeclipse web项目 架包配置 非maven
而后finish
finish后可能会弹出目录选择窗口,叉掉
如果是下方图示则点击yes
idea2019 导入 Myeclipse web项目 架包配置 非maven

6.导入后,点击1,选择2点击
idea2019 导入 Myeclipse web项目 架包配置 非maven

我们的设置便是这些
idea2019 导入 Myeclipse web项目 架包配置 非maven

7.设置jdk以及编译输出文件夹目录
idea2019 导入 Myeclipse web项目 架包配置 非maven
8.设置对于src以及资源(默认设置好了,检查一遍)
idea2019 导入 Myeclipse web项目 架包配置 非maven
9.设置编译输出文件夹(默认设置好了,检查一遍,或是自定义)
idea2019 导入 Myeclipse web项目 架包配置 非maven
10.架包配置

idea2019 导入 Myeclipse web项目 架包配置 非maven
11.当遇到项目中jsp与servlet jar与tomcat中的jsp与servlet重复不兼容一系列问题时,优先使用Tomcat中jar
方式一
选择1
idea2019 导入 Myeclipse web项目 架包配置 非maven
找到你需要部署的tomcat lib包中的 jar
idea2019 导入 Myeclipse web项目 架包配置 非maven

方式二
选择library
idea2019 导入 Myeclipse web项目 架包配置 非maven

选择你的tomcat
idea2019 导入 Myeclipse web项目 架包配置 非maven

15.选择点击

idea2019 导入 Myeclipse web项目 架包配置 非maven

16.选择你的项目,界面自动弹出至此处
重新选择你的web项目的web.xml文件
重新选择你的项目的web资源文件目录
idea2019 导入 Myeclipse web项目 架包配置 非maven
17.选择点击
选择你的项目。默认然后ok
idea2019 导入 Myeclipse web项目 架包配置 非maven

18.配置tomcat
idea2019 导入 Myeclipse web项目 架包配置 非maven

19.选择你的tomcat 文件目录配置端口以及访问url
idea2019 导入 Myeclipse web项目 架包配置 非maven

20 打包
idea2019 导入 Myeclipse web项目 架包配置 非maven
21.添加后设置项目名
然后ok,启动项目,启动成功后自动访问
idea2019 导入 Myeclipse web项目 架包配置 非maven

相关文章: