What is Spring Boot?

Spring Boot is a sub-project of Spring open source organization. It is a one-stop solution for Spring components. It mainly simplifies the difficulty of using Spring, saves heavy configuration, and provides various initiators for developers to get started quickly.

Official site: the projects. Spring. IO/spring – the boot… GitHub source: github.com/spring-proj…

Advantages of Spring Boot

Features

  • Create stand-alone Spring applications
  • Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
  • Provide opinionated ‘starter’ POMs to simplify your Maven configuration
  • Automatically configure Spring whenever possible
  • Provide production-ready features such as metrics, health checks and externalized configuration
  • Absolutely no code generation and no requirement for XML configuration
  • Independent operation

    Spring Boot and embedded with various servlet containers, Tomcat, Jetty, etc., now no longer need to be deployed into a war package container, Spring Boot as long as the executable jar package can run independently, all dependencies are in a JAR package.

    • Simplify the configuration

    Spring-boot-starter-web initiators automatically depend on other components, simplifying maven configurations.

+ - org. Springframework. The boot: spring - the boot - starter - web: jar: 1.5.6. RELEASE: the compile + - Org. Springframework. The boot: spring - the boot - starter - tomcat: jar: 1.5.6. RELEASE: the compile | + - Org, apache tomcat. Embed: tomcat embed - core: jar: 8.5.16: compile | + - Org, apache tomcat. Embed: tomcat embed - el: jar: 8.5.16: compile | \ - Org, apache tomcat. Embed: tomcat embed - websocket: jar: 8.5.16: compile + - Org. Hibernate: hibernate validator: jar: 5.3.5. Final: compile | + - javax.mail. Validation: validation - API: jar: 1.1.0. Final: compile | + - org. Jboss. Logging: jboss - logging: jar: 3.3.1. Final: compile | \ - com fasterxml: classmate: jar: 1.3.3: compile \ - Org. Springframework: spring - webmvc: jar: 4.3.10. RELEASE: the compileCopy the code
  • Automatic configuration

    Spring Boot can automatically configure beans based on classes and JAR packages in the current classpath. For example, a Spring-boot-starter-Web initiator can have web functions without other configuration.

  • No code generation and XML configuration

    Spring Boot configuration is done without code generation and without XML configuration files, all with the help of conditional annotations, one of the core features of Spring4.x.

  • Application of monitoring

    Spring Boot provides a series of endpoints to monitor services and applications for health checks.

Disadvantages of Spring Boot

Although It is easy to get started with Spring Boot, if you do not know its core technology and process, it will be very difficult once you encounter problems. Moreover, there are not many solutions at present, which requires a perfect process.

Recommended reading

Dry goods: 2TB architect four-stage video tutorial

Interview: the most complete Java multithreaded interview questions and answers

Interview: the most comprehensive ali advanced Java interview questions in history

Interview: The most complete Spring interview questions in history

Tutorial: The most complete Spring Boot complete video tutorial

Books: 15 must-read books for advanced Java architects

Tools: Recommended an online creation flow chart, mind mapping software

Share Java dry goods, high concurrency programming, hot technology tutorials, microservices and distributed technology, architecture design, blockchain technology, artificial intelligence, big data, Java interview questions, and cutting-edge hot news.