Use idea to build a Spring Boot starter project

Source: Internet
Author: User
Tags spring initializr

Brief introduction

  Spring Boot is a new framework provided by the pivotal team designed to simplify the initial setup and development of new spring applications. The framework uses a specific approach to configuration, which eliminates the need for developers to define boilerplate configurations. In this way, Spring boot is committed to becoming a leader in the burgeoning field of rapid application development (rapid application development).

Core features of Spring Boot
    • Spring projects that run independently

Spring boot can run independently as a jar package, and running a spring boot project only needs to run through Java-jar Xx.jar.

    • Inline servlet container

Spring Boot can choose to embed Tomcat, jetty, or undertow so that we do not need to deploy the project as a war package.

    • Provides starter simplifies MAVEN configuration

Spring provides a series of starter Pom to simplify the dependency loading of maven.

    • Automatically configure Spring

Spring Boot automatically configures beans for the classes in the jar package based on the jar packages, classes in the classpath, which greatly reduces the configuration we want to use. Spring boot only considers most of the scenes, not all of them.

    • Application monitoring of quasi-production

Spring Boot provides monitoring of the runtime's projects based on HTTP, SSH, and Telnet.

    • No code generation and XML configuration

Spring boot is not implemented by code generation, but by conditional annotations, which is a new feature of Spring 4.x. Spring 4.x advocates the use of a combination of Java configuration and annotation configurations, and spring boot does not require any XML configuration to implement all of the spring configurations.

quickly build a spring Boot project1, open the idea comes with the Spring boot plugin, I operate when idea does not show spring Initializr, need to be opened in the settings.

2. New Spring INITIALIZR Project,

3, fill in the project information,

4, select the technology used in the project,

5, fill in the project name, Finish.

6. Testing

7. Run the project and run it as a Java class, select it from the right-click menu,

8. Results

Use idea to build a Spring Boot starter 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.