Idea13 project configuration

Source: Internet
Author: User

之前用了一段时间的idea,有些老的代码,用eclipse跑了一下,比较麻烦,于是试用一下idea,最后,项目可以顺利跑起来。

对项目的配置,主要是在F4中,即:Module Setting,在模块的设置中。

设置中,有五个选项,分别是Project,Modules,Libraries,Facts,Artifacts。

一、project。

这里主要有三个选项,第一个是配置jdk,第二个是配置编译的级别。第三个比较重要的是,配置工程的输出目录output。当项目顺利运行后,运行的实际就是这个输出目录中的东西。这个目录相当于虚拟目录,以后发布,直接用这个里面的文件即可,这个比较重要。

二、Modules

这里,sources选项卡,主要是用来配置源java代码用,偶尔有些项目,源代码的位置,编译器并不知道在哪里,这里在源代码的目录上,点击设置成Sources,目录变为蓝色后,编译器就可以将该目录作为源码目录。eclipse默认是src的。

在Paths选项卡中,也要设置正确,这里是给你的源代码编译后进行存放位置的设置,也就是对class文件位置的设置。一般最好是选第一个,试用默认设置。如果自己想存放到自己定义的位置,可以在第二项中选择。

三、Libraries

就是依赖的库文件的设置,需要引入的包都在这里设置。

四、facts

为项目增加web支持,增加struts、spring、hibernate等支持都在这里配置。在这里可以让编译器招到你的ssh等框架的xml配置文件,让项目正常运行。

五、artifacts

将工程打包成一个artifact,然后,在tomcat等容器中,增加该artifact,就可以顺利运行自己的程序了。

IDEA13 项目配置

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.