IDEA Chapter II----Configure GIT, tomcat (hot Deployment), database, and get your project running.

Source: Internet
Author: User
Tags mysql client git client

section one: Download git client, integrate idea

  because of the GIT version management used by bloggers, this series is based on GIT version tools, and of course SVN is similar to git configuration. GIt also supports the installation version and decompression version, support a variety of operating systems, I download here is the decompression version of Windows.

  

  

Select the folder you just unzipped, select Git.exe under the Cmd folder, and click Test to see if the connection is successful.

Note: If you do not configure a GIT client, importing a project with a git address will prompt you to find Git.exe.

  

section II: Configuring Tomcat (Hot deployment will talk about later)

  Tomcat download installation is not a nuisance, bloggers use tomcat8.0, like the JDK, Tomcat also supports multiple projects using different tomcat.

  

Select New Tomcat and select the Tomcat directory, and remember this is the root directory.

  

section III: Importing projects from Git

  

  Enter your project's git address, then select the project directory, fill in the project name, click Clone, and then enter the username and password to check out the GIT project locally. Then click OK to open the project.

  

  

Here I use a previous Dubbo demo to do the case.

  

Is the MAVEN common function, the arrow one is maven some common commands, the arrow two is the plug-in which you configure in the project, the arrow three is the project to rely on the jar, including its own encapsulated jar.

  

Clicking this button will show the project dependency chart on the left, which allows us to observe the dependencies of the project and quickly locate the jar conflict between dependencies.

  

Section Fourth: Tomcat Thermal Deployment

  It's a quick and easy thing to think about modifying a JSP or a Java file or even a configuration file without restarting the project. Nonsense not much to say, direct configuration to get up.

  

To add a local tomcat,tomcat configuration, please refer to my previous chapter.

  

A name for Tomcat, this can be configured multiple Oh, so you can configure a tomcat for each project to run. Choose your own tomcat, choose the default preview of the browser my is chrome, the following is the default access address, and then select their own JRE, the following is the port number set, it is worth mentioning that after the port number is configured here, Tomact server.xml port configuration is useless.

  

is to add your project war, here we add the exploded suffix.

  

  

Select the Update classes and Resources option, click OK, the Tomcat hot deployment is complete, and the pro-tested modifications do not need to restart the project. But the change is more than it seems to need to restart, but it is also satisfied.

  

section Fifth: Configuring Datebase

  I don't know what the eggs are. Query SQL is no better than MySQL client, auto-generated domain is not freemarker easy to use, here is casually mentioned.

Choose your own database, and then similar to the client configuration, this is no longer a nuisance.

  

At this point your project can run up, is to give the idea of the main interface commonly used several modules, you can click on their own.

  

Note:   IntelliJ idea is a concept that does not have an Eclipse-like workspace (Workspaces), and the largest unit is Project. If you are observing multiple projects at the same time, the solution IntelliJ idea provides is to open multiple project instances, which you can understand as opening multiple project Windows. Of course, you can also import the same window based on dependencies.

IDEA Chapter II----Configure GIT, tomcat (hot Deployment), database, and get your project running.

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.