Github star 98k, Alibaba’s latest Spring Boot project practical documentation is too strong

It’s time to prepare for the annual autumn recruitment again. Although the major companies in the Internet industry have laid off employees in the past two years due to the poor economic environment, the economic situation is recovering for this year’s autumn recruitment. I specifically asked my friends at Alibaba to help. This Spring Boot project practical development document is shared.

This document covers all aspects of Spring Boot enterprise-level project development, focusing on the construction of Maven projects, Jersey Restful style, Postman test interface, Swagger2 visual documentation, Lombok elegant coding, Redis cache, Security security mechanism, Web Service service, WebSocket Communication, performance testing, integration testing, Jeecg Boot rapid development framework, using Docker for project deployment, using spring-boot-devtools for hot deployment, using Actuator for monitoring, etc. These contents are not covered in most Spring Boot introductory books. Highlights.

Table of contents

Due to the length limit of the article, only the table of contents and part of the content are shown below. The full version is ready. Friends who need to learn from it, please like and forward it. Click [Portal] to get the free download method of the full content.

Document overview

This book systematically introduces the principles of the Spring Boot framework and the usage of its development components. In addition, it also shows the complete process of enterprise-level development through actual project cases. This book is rich in content and highly practical. It gives a lot of practical development experience, which makes people enlightened. For example, the performance testing tips have benefited a veteran like me who has been in the development workplace for many years. I recommend it in related fields. of software developers read.

Details

Chapter 1 Spring and Spring MVC Basics

This chapter introduces the Spring framework, explains the module division in the Spring framework and the Spring ecosystem. All development is inseparable from environment construction. This chapter introduces the project's construction and dependency tool Maven, and demonstrates how to use Maven in the project. This chapter also introduces the detailed steps of configuring Maven using Eclipse and IntelliJ IDEA and setting up a development environment. Finally, it introduces the steps of developing the Hello World example in Spring and displays the results. It also lists the Spring configurations commonly used in project development. Annotations, and a detailed introduction to the Spring MVC request process.

Chapter 2 Getting started with Spring Boot from scratch

This chapter introduces some basic knowledge of using Spring Boot for project development, including the basic configuration of Spring Boot, multi-environment configuration during development, basic knowledge of Restful, and how to integrate Jersey in Spring Boot to develop Restful API interfaces. After completing the interface development, we also introduced how to use Postman for interface testing, how to use Postman to construct various requests, how to add Swagger2 UI annotations on the interface, and how to add Swagger2 configuration to the project to implement the web page. Visit Swagger2’s API documentation. Finally, this chapter also introduces the project development tool Lombok, which can use various annotations to achieve elegant coding, thereby improving project development efficiency.

Chapter 3 Data Persistence

This chapter introduces how to use Spring Data JPA to operate the database in a Spring Boot project. Developers do not need to write corresponding SQL statements for every operation of the database. JPA can automatically generate SQL statements, which greatly improves the efficiency of project development. In addition, in the Web development process, input parameters cannot be trusted and parameters must be verified. Using Spring Boot Validate annotations for parameter verification instead of using if...else for judgment makes the project code more elegant.

Chapter 4 Web application development with Spring Boot

This chapter introduces the development process of integrating Web modules in the Spring Boot project, including the Thymleaf template engine produced by the Spring team, which can display rendered pages to users. This chapter explains the principle of file upload through an example of file upload. Web development is inseparable from filters, listeners, interceptors and exception handling. This chapter introduces their principles and usage methods. Finally, it introduces Redis, a cache tool commonly used in project development, including its usage scenarios and basic knowledge.

Chapter 5 Spring Boot Security Security Control

This chapter introduces the relevant knowledge of Spring Security. Spring Security is a security framework that provides declarative security protection based on Spring. It provides a complete security solution that can handle the authentication and authorization behaviors of different identities and calling methods in Web requests. SpringSecurity solves security problems from two perspectives:

  • Use Filters from the Servlet specification to protect web requests and restrict URL-level access;.
  • Use Spring AOP to ensure that permission-related methods are called, that is, with the help of dynamic proxies and usage notifications, to ensure that only people with permissions can access protected methods.

This chapter introduces how to use the WebSecurityConfigurerAdapter adapter to configure project permissions and user authorization information. It also introduces the core class AuthenticationManager of Spring Security as well as the verification mechanism and verification process. Finally, it introduces how to use JPA and MyBatis to complete a simple permission verification.

Chapter 6 Spring Boot Extensions

This chapter first introduces the common logging framework of Spring Boot. In Spring Boot, Log4j2 is used to record logs in the system, including different levels of logs, as well as custom log Appenders for log output.

Chapter 7 Project Testing

This chapter introduces common testing methods in project development, including unit testing, integration testing and performance testing. After the project development is completed, unit testing is required. The testers test the code, point out bugs to the developers for modification, and then test again. It can be said that poor testing will cause the project to be "crippled". Testing is an important guarantee for the quality of the project.

Chapter 8 Spring Boot project rapid development framework Jeecg Boot

This chapter introduces the relevant knowledge of Jeecg Boot, the scaffolding tool built by the project, mainly including the functions of Jeecg Boot, the technology stack and the configuration and modification of the project. It also introduces the project's database access methods - MyBatis and MyBatisPlus, and finally introduces Jeecg Boot’s support for web development.

Chapter 9 Spring Boot project development practice - sales management system

This chapter starts with the project background, covering project requirements analysis, system use case analysis, system technology framework selection, system framework construction, project initialization, and business code development. It shows the complete development process of a project, thereby helping readers to understand the previously introduced Apply knowledge to development practices.

Chapter 10 Spring Boot Project Deployment and Monitoring

This chapter introduces the difference between packaging a Java project into a jar package and a war package. It also introduces the process of using Docker to build a jar into its own image and then run the project. In Spring Boot, you can use Actuator to view the running status of different projects through different endpoints. Commonly used endpoints include env to view project environment and configuration information, health to view project health information, info to view project information, and all request entries. mappings.

end

Well, this concludes the content of this document. This document introduces the simple use of various components commonly used in current enterprise-level development. It is recommended to learn these technologies repeatedly. Especially for the use of some middleware (such as Redis and IDocker), you should also read the relevant documents on their official website, because they are used very frequently in development. Being proficient in these middleware will be of great help to future development and your own development. usefulness. Regarding the two technical difficulties of Web Service and Web Socket, readers should study their principles carefully before practicing coding, so as to understand their essence, especially their principles.

Due to the length limit of the article, only the table of contents and part of the content are shown below. The full version is ready. For those who need to learn, please like and forward it. - [Scan at the end of the article] to get the free download method of the full content.

Guess you like

Origin blog.csdn.net/Trouvailless/article/details/132082312