Why learn SpringBoot

What is SpringBoot

SpringBoot is a sub-project of the Spring project, which belongs to the same product of Spring as the well-known Spring-framework:
springmvc is just a part of spring.
Insert picture description here

In fact, people call Spring Boot a build program 脚手架. Its main function is to help us quickly build a huge spring project, and reduce all xml configuration as much as possible, so that it can be used out of the box and get started quickly, let us focus on business rather than configuration.

Why learn SpringBoot

Java has always been criticized for being bloated and troublesome. When we are still working hard to build the project, maybe the Python programmer has already written the function. The reason is two points:

  • Complex configuration,

    The various configurations of the project are actually a loss during development. Because there is a need to switch thinking between thinking about Spring feature configuration and solving business problems, writing configuration squeezes time for writing application logic.

  • One is chaotic dependency management.

    Project dependency management is also thankless. Deciding which libraries to use in the project is already a headache. You also need to know which version of these libraries will not conflict with other libraries. This problem is really tricky. Moreover, dependency management is also a loss, adding dependency is not writing application code. Once the wrong version is selected, the incompatibility issues that follow will undoubtedly be a productivity killer.
    And SpringBoot makes all this a thing of the past!

Spring Boot simplifies the development of Spring-based applications. You only need to "run" to create an independent, production-level Spring application. Spring Boot provides out-of-the-box settings for the Spring platform and third-party libraries (default settings are provided, and the package that stores the default configuration is the starter), so that we can simply start. Most Spring Boot applications require very little Spring configuration.

We can use SpringBoot to create a java application and start it with java -jar, then we can get a production-level web project.

Features of SpringBoot

The main goals of Spring Boot are:

  • Provide a very fast and widely accepted introductory experience for all Spring developers
  • It works out of the box (starter is actually a jar package provided by SpringBoot), but you can quickly get rid of this method by setting the parameters (.properties) by yourself.
  • Provides some non-functional features common in large-scale projects, such as embedded server, security, indicators, health detection, external configuration, etc.
  • No code generation, no XML configuration

Guess you like

Origin blog.csdn.net/he1234555/article/details/114321489