IntelliJ IDEA 导入eclipse项目并配置tomc
2018-07-27 本文已影响0人
nico1988
idea导入exlipse项目
File -- new -- project from existing source
选择项目文件夹目录 一路next

导入项目 编译

- 开始设置 这里根据需要一步步设置
设置module

设置path

设置library

设置artifact 这里比较重要,否则后面访问不了

配置tomcat
点击edit configuration


-
配置deployment
点击 +,选择刚刚配好的artifact ,填写context
image.png
-
重新build项目
image.png
-
然后 run
image.png
-
浏览器访问----成功
image.png