Eclipse如何转化成Idea
这篇文章将为大家详细讲解有关Eclipse如何转化成Idea,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
创新互联长期为近1000家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为长清企业提供专业的成都网站设计、成都网站制作,长清网站改版等技术服务。拥有10余年丰富建站经验和众多成功案例,为您定制开发。
所有首先我们需要新建一个在idea中创建一个project,点击菜单file->new->project,在打开的新窗口中我们选择一个空的project:

接下来填写project名称和路径,就能完成project的创建。如果你已经创建了project可以忽略以上步骤,接下来我们导入eclipse项目。
点击组合键ctrl+alt+shift+s,弹出对话框,选择modules->import module:

选择要导入的eclipse工程:

选择下面的一个选项、然后选择eclipse。也可以选择上面一个选项不过配置比较麻烦,这里我们选择下面一个个进行配置:

接下来就是下一步下一步傻瓜式操作,等待导入成功后。选择ctrl+alt+shift+s,在弹出的面板中选择project,设置project的jdk和project language level :

选择modes选项卡,选择项目,选择dependonces,选择sdk,删掉红色的jar包

检查下有没有未导入的jar包,有就添加进去。

选择项目右键add->web,给项目添加一个web

选择web,修改其中的两个路径:


修改后:

如果项目中有用到tomcat中的jar包,这需要将tomcat中的jia包引入进来。点击libraries选项卡点击“+“号,选择java

选择tomcat中的lib目录:

添加完成后

点击artifact选项卡,点击“+”号,选择如下选项,选择将项目添加进来(没有这一步无法将打包的项目添加进tomcat中):

添加成功后:

经过以上配置就保持后eclipse项目就转化成了idea项目了。
关于“Eclipse如何转化成Idea”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
文章标题:Eclipse如何转化成Idea
浏览路径:
http://wjwzjz.com/article/poiepc.html