Table of contents
1. How to learn Spring Boot
Conditions for learning SpringBoot : Can use Spring + understand AOP, IOC + can simply use Spring MVC
SpringBoot software requirements : The latest SpringBoot version is 2.7.5
- Java8-19
- Spring Framework 5.3.23 and above
2. Spring family bucket function
Function:
- Responsive programming: an asynchronous and non-blocking approach with better performance. Applied Spring WebFlux
- Serverless: faas, function as a service. Deploy to the cloud platform, real-time billing according to volume
- Event Driver: The distributed system processes data in a real-time and responsive manner in the form of Events
- Batch: data batch processing
Functions of each module:
- Spring Data: read JDBC, Redis and other database data
- Spring Session: Solve the problem of session session storage sharing
- Spring Batch: Batch processing of data
- Spring AMQP: read and write real-time message queue data
3. SpringBoot related concepts
SpringBoot is a one-stop framework for integrating the Spring family bucket, but it can only develop stand-alone applications. Distributed applications can be developed with Spring Cloud . In this way, the problems of configuration management (distributed configuration modification), service monitoring, link tracking (multi-layer data calls form links), log management, and task scheduling can be solved.
Noun concept:
- Servlet: Servlet is a set of specifications for Java Web development, and a Servlet program is a Java class written according to the Servlet specification. Servlet containers that implement the Servlet specification include Tomcat, Jetty, etc.
Advantages :
- Create a stand-alone Spring application
- Embedded Web Server
- Automatic starter dependency, simplifying build configuration
- Automatically configure Spring and third-party functions
- Provides production-level monitoring, health checks, and external configuration (configuration can be modified externally)
- No code generation, no need to write XML