程序员使用idea运行项目,手把手教学,不要太详细

idea (187) 2023-03-24 22:04

大家好,我是编程小6,很高兴遇见你,有问题可以及时留言哦。

1、 资源库检出项目

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第1张

1.1 svn检出项目

点击上去的Subversion出现下面的界面

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第2张

填写svn地址,如果没有验证过用户名和密码会让输入用户名和密码

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第3张

选择一个项目并选择拉取到新建的Project目录下

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第4张

选择以拉取的项目名为目录名

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第5张

格式化svn版本

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第6张

等待拉取成功

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第7张

选择no,如果选择了yes则idea会直接以Project的形式打开拉取的项目,我们需要让idea以module的形式打开项目,所以选择no

1.2 git检查项目

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第8张

填写git的url和检出的位置,如果没有验证过权限需要添加帐号和密码

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第9张

等待拉取成功

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第10张

选择no,如果选择了yes则idea会直接以Project的形式打开拉取的项目,我们需要让idea以module的形式打开项目,所以选择no

2、 导入module[项目]

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第11张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第12张

选择从资源库检出的项目

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第13张

下面是选择导入项目的类型,如果是从eclipse迁移过来的而且不是maven项目,则选择eclipse

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第14张

下面直接点击next即可,最后一个点击finsh

3、 配置module

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第15张

3.1 配置编辑语言等级

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第16张

3.2 配置编译输出路径

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第17张

3.3 选择jdk和jar包

如果是eclipse项目则把项目中的lib目录直接添加进去

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第18张

如果需要tomcat的jar包,请按照下面操作

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第19张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第20张

4、 使用maven管理项目

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第21张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第22张

运行完后需要把module的编译输出路径重新配置一遍

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第23张

运行后jar包就存在项目中了

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第24张

5、 添加web目录

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第25张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第26张

6、 添加war包

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第27张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第28张

7、 创建tomcat

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第29张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第30张

把添加的war包放到tomcat中

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第31张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第32张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第33张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第34张

启动tomcat

8、 导入eclipse项目

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第35张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第36张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第37张

下面直接点击下一步,一直到完成

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第38张

配置jdk和语言编译等级,jdk6对应的是6

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第39张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第40张

添加tomcat的jar包

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第41张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第42张

添加web目录

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第43张

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第44张

添加war包

程序员使用idea运行项目,手把手教学,不要太详细_https://bianchenghao6.com/blog_idea_第45张

下面就是创建tomcat了和第七步一致

发表回复