Springboot (i): Use spring INITIALIZR in IntelliJ to quickly build a spring boot project

Source: Internet
Author: User
Tags spring initializr

use spring Initializr in IntelliJ to quickly build a spring boot project

New---Project

You can see the Create features window as shown in the figure. Initial Service Urlthe address that points to is spring's official spring INITIALIZR tool address, so the project created here is actually based on its web tool, or it can be copied to a browser to try and generate spring Boot Project Engineering Download

  

Next, you can see that you can edit the project information that we created, type, language language, and so on .

  

Next, in this step we can choose a package that can be relied on, commonly used web, template engine, database, etc.

, where I have selected Web,thymeleaf,mysql dependencies, after the creation is complete, check the Pom.xml file to see that the dependencies have been created to complete ~

  

 next~

Here is the physical path of the project

  

  Finish Creation Complete

The directory structure is as follows:

  

Report:

As shown, the Springboot has a total infrastructure of three blocks,

    1.src/main/java:demoapplication, you can start the Spring boot app by running the class directly

2.src/main/resources: Configuration directory, which is used to store some configuration information of the application, such as application name, service port, database configuration, etc. Since we have applied the Web module, we have created the static directory and the templates directory, which is used to store the resources, slices, CSS, JavaScript and so on, which is used to store the template file of the Web page.

3.src/test: Unit Test Catalog, generated demoapplicationtests implemented by JUNIT4, can be directly used to run the Spring boot application test.

 

  

Springboot (i): Use spring INITIALIZR in IntelliJ to quickly build a spring boot project

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.