IDEA how to quickly build Java development environment

As IntelliJ IDEA mac novice, IDEA how to quickly build Java development environment? Today, Xiao Bian gave us some IntelliJ IDEA mac tutorial, want to know how to quickly build IDEA Java development environment? Come and learn it together with the small series!

02164657_350bd38d5e.jpeg

Global JDK (default configuration)

Specific steps: the top toolbar File -> Other Settins -> Default Project Structure -> SDKs -> JDK

Example: The following figure is provided JDK directory step, and click OK to save.

02163950_a76f35044c.png

Note: SDKs stands for Software Development Kit, JDK because IDEA supports a variety of development kits.

Similarly, the current project can set the JDK version love for each module in the project and Project Structure.

Global Maven (default configuration)

Specific steps: the top toolbar File -> Other Settings -> Default Settings -> Build & Tools -> Maven

Example: in theory, as long as the home directory can be configured with Maven, the actual development of recommended User Settins file.

02164031_f1a27be9fa.png

Here reminder, address Apache Maven local repository is automatically generated, typically, it is recommended in the user directory of the C drive in the actual development of the local warehouse address you specify, to avoid cleaning up third-party security tools due to reinstall the system or while data loss. Maven configuration is very simple, delete the comment after a glance. Figure:

02164145_1ef573ed5d.jpeg

Open Maven artifact

Eclipse still use the Update command struggling children's shoes, please rushed to try Maven plug-IDEA offer the convenience of its operation will bring you an unprecedented feeling happy! !

Specific steps: the right side of the toolbar Maven -> click to expand a project or modules -> fast execution of Maven command.

02164221_487618ede9.png

Version Control Git / Svn (default configuration)

Specific steps: the top toolbar File -> Other Settings -> Default Settings -> Version Control -> Git

Instructions: IDEA default integrated support for Git / Svn directly set the execution procedure, the right of Test prompts can be successful.

Feedback question: There are some small partner, said feedback IDEA can not find svn.exe, solution: reinstall SVN, configuration item re-select the command line client tools can be.

02164240_1f3d1dc870.png

Automatic and intelligent guide packages to remove (the default configuration)

Specific steps: the top toolbar File -> Other Settings -> Default Settings -> Auto Import

Instructions: In line to see a lot of people question why can not optimize the IDEA and Eclipse can lead package, this is not a low-end black thing, so he drawn to share with you how to optimize the IDEA guide package.

02164332_13334a1629.png

Tomcat Server (the current project configuration)

Many small partners can not find the beginning Tomcat configuration is actually very simple, container Tomcat or Jetty these are deployed, it will naturally think of Deployment, open the deployment configuration, you can see the configuration of the application server.

配置Tomcat方法: File -> Settings -> Deployment -> Application Servers -> Tomcat Server

For configuration, as shown below:

02164408_13e6c1c041.png


Guess you like

Origin blog.51cto.com/14370425/2427457