3 ways to build the project Springboot

First, create your own:

  1. Create a maven project

  2.pom.xml add the following:

<! - 1. springboot specified dependency managed by -> 
    < parent > 
        < the groupId > org.springframework.boot </ the groupId > 
        < the artifactId > springboot-parent-Starter </ the artifactId > 
        < Version > 1.5.2 .RELEASE </ Version > 
    </ parent > 
    <! -   . . . -> 
    
< the Dependencies > 
    <-! 2. Add dependencies for -> 
    < dependency > 
       < groupId ></groupId>
       <artifactId>spring-boot-starter</artifactId>
    </dependency>
</dependencies>

  3. Create a project started springboot categories:

@SpringBootApplication
public class MyApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(MyApplication.class);
        app.run(args);
    }
}

Two, Web download package infrastructure projects

  1. Go to the official website to download springboot spring project package: HTTP: // HTTPS: //start.spring.io/

  2. Select the desired configuration download:

 

   3. After the download, unzip, you can import maven project in the compiler

Three, sts tool creates: (spring tool suit)

  1. Download and install the Tool SUIT the Spring: https://spring.io/tools3/sts/all   (STS is a customized version of Eclipse, Spring develop custom designed for convenient operation and maintenance Spring create a debug application.

  2. Select Configure and create a project:

 

Guess you like

Origin www.cnblogs.com/mozisss/p/11415803.html