Super Spring Boot core notes, 15 core content explanations, no longer doubt life after reading!

What is Spring Boot

After more than 30 years of development, Java (object-oriented programming language) has produced many excellent frameworks. Spring (a framework created to solve the complexity of enterprise application development) was once one of the most popular Java frameworks, but with the rapid development of scripting languages ​​such as Node, Ruby, Groovy, PHP, etc., using Spring to develop applications appears It is cumbersome, because it uses a lot of XML configuration files, the configuration is cumbersome, the integration is not easy, and the development and deployment efficiency is low. At this time, a new rapid development framework that can solve these problems is urgently needed, so Pivotal Software started the development of Spring Boot in 2013.

In the past there was often such a scenario:-A beginner spent half a month reading several Spring programming books and mastered the most basic theoretical knowledge, but in actual development, it was often blocked in the initial environment In terms of configuration, it may take a few days to configure the environment poorly.

I once met a developer like this, and it took him a month to fail to configure the initial environment. This is unimaginable. Faced with such tedious and inefficient configuration and development work, people may even doubt their abilities. This is very painful in the end, many people will give up painfully, and developers who can persist will still face a lot of tedious configuration work when developing new projects. The experience of using Spring Boot is completely different, basically "out of the box".

Spring Boot is an extension and automation of the Spring framework. It eliminates the need for XML (Extensible Markup Language) file configuration in Spring (if you are used to XML configuration, you can still use it), making development faster, more efficient, and more efficient. automation.

table of Contents

Enter the Spring Boot world

It describes the relationship between Sping, Spring Boot and Spring Cloud. It also focuses on how to use development tools (such as IDEA) to achieve development, how to find class object methods through API documentation, and tell us how to learn, discover and learn during the development process. Solve the problem


The Alibaba architects need to receive a free one year time-consuming finishing "Spring Boot combat, let your development like building blocks simple" friend, Xiao Bian trouble spots like this article, then click here to directly reply signal: Electronics Books can be received for free

Prepare the development environment

First introduce the environment for building and developing Spring Boot, then introduce the project management model file pom.xml, and finally explain how to set up a domestic warehouse. Describes the establishment of the Java environment and the use of development tools.



Use development tools

The installation and configuration of development tools IDEA, Eclipse, STS, and popular plug-ins are introduced in detail. This chapter will use IDEA to develop, run, and package the first Spring Boot application "Hello World". While introducing the practical skills of IDEA, it will also compare in detail the differences between IDEA and Eclipse, and how to use the source code of this book in each development tool.


Basics

The basics are especially suitable for beginners.

Spring Boot basics

First introduce the basic knowledge of Spring Boot: Then explain how to customize the startup screen and implement hot deployment: Finally, introduce how to use configuration files and configure multiple environments through configuration files.


Layered development of web applications

Introduce the most commonly used layered development model MVC (Model View Controller) in Web development; then explain the syntax and practical technology of view technology Thymeleaf, and use examples to explain how to connect the three MVCs to build Web applications; finally explain how to use examples Use Validator to implement data validation and how to customize data validation.



Responsive programming

First introduce the basic concepts of reactive programming, and compare and analyze the MVC and WebFlux modes, and explain how to develop WebFlux with examples; then explain the methods of developing WebFlux using MVC and reactive development methods; finally use WebFlux mode combined with MongoDB database to realize data Add, delete, modify and query.


Advanced

In the theoretical explanation part, let us understand the technical key points needed in the work, and then use examples to let us learn in depth, improve the technical level, easily meet the work, and truly apply the knowledge points and practical skills to the work.

Spring Boot advanced

Introduce AOP, loC, Servlet container; then explain in depth the principle of automatic configuration, custom Starter, custom annotation; finally explain exception handling, and how to perform unit testing.


Use ORM to operate SQL database

Introduce how to use ORM (JPA, MyBatis) to operate the database; then explain common query methods, custom query methods, native SQL (Structured Query Language, structured query language) development and mapping, and will also explain in depth one-to-one, -Many, many-to-many relational mapping operations and the use of transactions; finally, a comparative analysis of the difference between JPA and MyBatis.

Interface architecture style-RESTful

RESTful is a very popular architectural design style. This chapter first introduces the characteristics of REST, HTTP methods and CRUD action mapping; then explains how to build a unified-style Restful API for PC and mobile apps based on Spring Boot; finally explains how to use RestTemplate to send GET, POST, DELETE, PUT and other requests.


Integrated security framework to achieve security authentication and authorization

Introduce how to use Spring Security to create an independently verified administrator authority system and membership system, explain how to perform sub-tables, sub-authorizations, sub-login entrances, sub-authentication interfaces, multiple registration interfaces, and the design and implementation of RBAC permissions. How to use JWT for Mobile APP provides token authentication; then explains the basic theoretical basis of Apache's Shiro security framework, and how to use Shiro to build a complete user authorization system; finally, compare and analyze the difference between Spring Security and Shiro.


Using Redis to achieve high concurrency in Spring Boot

Redis is a commonly used memory cache database for large-scale Internet applications. Its read and write speed is very fast. According to the official Bench-mark data, its read speed can reach 110,000 times per second, and its write speed is 81,000 times per second. .

First introduce the principles, concepts, and data types of Redis; then use a complete example to help readers experience the cache increase, delete, modify and query functions, and use Redis to implement article caching and count clicks; finally, explain the use of distributed Session.


Use RabbitMQ to realize data exchange between systems

RabbitMQ is a very widely used messaging middleware in recent years.

First introduce its principles, concepts, 6 working modes, and commonly used annotations: then use examples to explain how to use the AmapT emplate interface to implement message sending and monitoring in Spring Boot.


Integrate NoSQL database to realize search engine

Regarding search engines, it is difficult for us to achieve the effects of the two major search frameworks Elasticsearch and Solr. So for the two major search frameworks, they explained their principles and specific usage methods in great detail. First introduce what is a search engine, how to use MySQL to implement a simple search engine, as well as the concepts and interface classes of Elasticsearch; then introduce the precision, vagueness, range, combination, paging, and aggregation query of Elasticsearch; finally introduce the concept, installation, and configuration of Solr And use, and compare the two search frameworks.

Let us grow from a technical "rookie" to a "technical expert" in a short time


Project actual combat

Develop an enterprise-level general back-end system

Using Spring Boot, it is inevitable to develop a background system. Therefore, through the realization-a role-based access control background system, to systematically introduce how to use Spring Security.



Realize an e-commerce mall similar to "JD"

In order to comprehensively use the Spring Security, Redis, RabbitMQ, JPA, and JWT technologies explained in this book, we integrate these technologies through examples.

First, explain how to integrate the management system and the membership system to realize a multi-user system; then explain how to realize the multi-turbulent, multi-method registration and login of the membership system; finally explain how to realize the functions of shopping, placing orders, spikes, and automatic order cancellation.



After the new business was transferred to the Spring Boot technology stack, employees were recruited (there are many Java developers, and they have a Java foundation to get started quickly), which has greatly improved the development speed, development cost and business operation effect. It didn't take much time for colleagues to use Spring Boot to build the company's first big data development framework. It integrates Spark, Elasticsearch, RabbitMQ, Redis, etc., and realizes data mining, automatic trend prediction, association analysis, clustering, concept description, deviation detection, etc.

The configuration, use, monitoring, and deployment of Spring Boot are very simple, and it has a complete ecology. Later, if the project traffic needs to be switched to the microservice Spring Cloud (based on Spring Boot), it will be extremely smooth. It can be expected that more and more companies will adopt Spring Boot in the future, and more and more developers will pay attention to and use Spring Boot.

List:

The collection takes Alibaba architect took a year of consolidation "Spring Boot real" friends, you can click directly here, right, is here, reply signal: e-books can receive a free

Guess you like

Origin blog.csdn.net/weixin_50520844/article/details/109027540
Recommended