A good workman does his work well , You must sharpen your tools first .
It's not hard to find out , There are still many children using it eclipse Development java project . When you touch IDEA after , Everything's better .
Use IDEA Create a springboot A project is a very simple thing . The choice of interface dependence is refreshing , Is there any .
Let's do it with me IDEA Gate , Create a new one springboot project .
1. open IDEA, Click on +Create New Project. Start creating a new project .
2. Find it in the menu on the left and click Spring Initializr, Click on next. Be careful , here idea By default https://start.spring.io Online templates provided , So we need to make sure that the network is unblocked .
Of course, you can choose from the following Custom Load the template from the specified link .
At this time , There are children to ask . If there is no net, it will be GG 了 , I still use it eclipse Well . don 't worry ,IDEA It can't be like this . How to build it locally spring Initializr The server ,
Please Baidu . I'll write a tutorial later , Let's set up a flag Well .
3. Fill in the project information according to the actual situation . among Type Properties can be selected from the drop-down list project perhaps pom,Packaging Properties can be selected from the drop-down list jar perhaps war（Maven I don't need to mention anything about it ）.
Click after filling in Next.
4. Here comes the most exciting interface ！！！ You can choose from the left , Then check the required dependencies in the middle of the window . On the right you can see the selected dependencies .
You can choose from the drop-down box above Spring Boot Version of , The latest version is used here 2.2.0 M4. Click when finished Next.
Here I have chosen “Web” Under category “Spring Web Starter”、“Template” Under category “Thymeleaf” as well as “SQL” Under category “Spring Data JPA” and “Mysql Driver”.
5. finally , The last step . Set project name Project name and Project save path Project location. After completion , Click on Finish.
6. wait for IDEA After building the project , The project structure is shown in the figure below . According to everyone in the 4 Step selection depends on different , The directory structure is similar .
7. I want to see others pom.xml, We need to rely on all the quiet lying inside . Is it right? so easy, Mom doesn't have to worry about me anymore .
8. Write a simple page to try to create a new project .
spring boot, start-up .
9. Visit to see how it works ,http://localhost:8080
The content is reproduced from https://www.cnblogs.com/little-rain/p/11063967.html