Spring Boot 2.X combat tutorial (2) Spring Boot Profile

 

2. Spring Boot Profile

Spring Boot can easily create a separate Spring-based application production levels.

2.1 Spring Boot Overview

Most Spring Boot application requires very little Spring configuration.

Spring Boot can use java -jar or more conventional war started deploying Java applications.

Spring Boot also provides a command to run "spring scripts" line tool.

2.2 Spring Boot history

Spring Framework is a lightweight Java EE substitute, by injection and dependency Oriented Programming with Java object implements a simple function EJB.

Spring Framework 2.5-based annotation component scans introduced in place of a large number of applications for XML itself explicit component configuration.

Spring Framework 3 introduces Java-based configuration, which is a type-safe reconfigurable configuration, instead of most of the XML configuration.

The emergence of Spring Boot, completely replace the XML configuration, which greatly simplifies the development of Spring applications.

2.3 Spring Boot wherein

Create stand-alone applications Spring

Directly embedded Tomcat, Jetty or Underow (no need to deploy the WAR file)

It provides a fixed "starter" Construction of a simplified configuration dependencies

Spring and automatically configure third-party libraries as much as possible

Provide production-ready features, such as metrics, health checks and externalize configuration

Absolutely no code generation and does not require XML configuration

 

If in doubt, watch the video: https://ke.qq.com/course/428845

 

Guess you like

Origin www.cnblogs.com/daqiang123/p/11265687.html