Intellij IDEA creates git, maven SpringMVC project Intellij IDEA creates git, maven SpringMVC project

 

1. Create a git warehouse on github (or private git). Note that if you build a project first, then build git, when git selects a local warehouse, it will prompt that it is not an empty directory

2. Copy the git link of the repository

3. Open the source tree (or other git visualization tools) and create a new folder as a local warehouse

Create a new folder here, clone

 

So the git part is built

4,打开idea-->file-->new-->new project-->maven-->next

 

5. This groupid is the name of your project team, you can write whatever it is for the company, and you can write whatever you want to write about yourself. The artifactid is the name of the project.

6. Select the path of the git repository you just created and build the project

7. At this time, when you open the general directory, you will see that there are two red ones. The red name indicates that these two files are not included in git, and it also indicates that git is successfully used.

At this time, open the source tree again, and you can see that there are some files in it, which means that git is successfully used.

8. In the general directory, right-click -->new-->file (you can omit this step later, just copy and paste this file into the new project)

Named .gitignore

Copy the following and paste it in

# Ignore all files under idea
.idea/
# Ignore the generated files under out
out/
classes/
# Ignore the generated files under target
target/
# Ignore project.iml
*.iml
# Ignore temporary files generated by word
~*
# Ignore the generated files under lib

As shown below:

At this time, open your source tree again, you will find that the miscellaneous files are gone, only the files you need

9. In the general directory, right click --> Add framework support

Scroll down and find Spring MVC

 

 ************************ You see this description, I haven't updated my article, and my article has been stolen by an unscrupulous website, please come to the original link Look, it's been updated ****************************

Intellij IDEA creates git, maven SpringMVC project

Original link:

http://www.cnblogs.com/blog5277/p/8906120.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326911938&siteId=291194637