Spring Boot 2.x Quick Start (a) entry

Baidu Encyclopedia: Spring Boot is a new framework provided by Pivotal team, which is designed to simplify the development process as well as the initial build new Spring applications. The framework uses a particular manner be configured so that the developer is no longer necessary to define the configuration of the template. In this way, Spring Boot committed to rapid application development booming (rapid application development) to be a leader.


table of Contents

First, what is Spring Boot

Two, Spring Boot development requirements

Three, Spring Boot directory structure

IV Summary


First, what is Spring Boot

SpringBoot would create an independent, becomes Spring-based applications in a production level is easy, you can "just run" these applications. We Spring platform and third-party components were optimized default configuration in most SpringBoot applications require very little Spring configuration.

characteristic:

  • To quickly create a separate Spring-based applications;
  • Directly embedded Tomcat, Jetty or Undertow (no need to generate a WAR file)
  • Providing a series of starter POM simplify configuration;
  • Spring and automatically configure third-party libraries as much as possible
  • The program provides health monitoring and other functions
  • Basically do not use the XML configuration file, using annotations for configuration.

Two, Spring Boot development requirements

1, create a Maven project, build the project structure

2, the configuration file pom.xml, references to simplify the configuration of various starter starter

3, configure operating parameters

4, coding and testing

5, package and run independently

Three, Spring Boot directory structure

In addition to the three default directory Maven, Spring Boot has another three specific directory, the entire framework necessary to build.

1, static: the user to store a static resource (static resource img, css, etc.)

2, templates: page catalog (jsp and other dynamic resources)

3, application.properties: Spring Boot's profile

IV Summary

1, using the Boot Spring Spring avoids the configuration, deployment debugging operations, simplifies the building step, extremely easy to use

2, Spring Boot can be very easy and quick to build the project, so that we do not care about compatibility issues, version applicable between the frame and so on, we want to use anything, you can just add a configuration, it is ideal for use Spring Boot Construction of micro services.

 

 

Published 98 original articles · won praise 165 · views 210 000 +

Guess you like

Origin blog.csdn.net/cyl101816/article/details/99768269