preface

First of all, this tutorial has a 10W star on Github. I will give you some examples of all the content below, and I will post the original link later! First of all, I will talk about the next we will talk about knowledge and technology, compared to explain the use of a variety of similar technology hand day difference, we can choose according to their own preferences!

  • Development Patterns: This article covers the old but still widely used layered application development pattern MVC(Model View Cont Olle R), as well as the growing popularity of responsive development pattern Web FluX
  • ORM (Object Relational Mapping) framework: Database operation is a very important part of program development. According to the habits of users at home and abroad, the world’s most popular JPA and China’s most popular MyBatis were compared and explained
  • Security framework: Security framework is a necessary content to explain the relevant books, information is very few, domestic rarely use, but super practical and easy to use Sp ING Boot officer ten thousand Security framework Sp ING Security is also more comprehensive explain the domestic use of Apache Security framework Shiro
  • Search engines. Search is one of the most widely used search frameworks in the world, but most of them are integrated with Elasticsearch Sol
  • Redis: Redis is an in-memory high speed memory database for large-scale networking applications, so this article has dedicated a chapter to explain the principles, concepts and practical applications of Red IS!
  • RabbitMQ: RabbitMQ is one of the most widely used middleware in recent years. this article explains its principles, concepts and applications in depth
  • Combat this article with examples throughout each chapter will have greatly small instance can be used in commercial production Not only that, but in the last two chapters to explain a variety of integrated application of technology, but also can be used in the production of the project example of an instance of the chapters of this article are to practical, implement a simple, clear logic, to make readers can understand the knowledge point in time, after And realize the specific application of knowledge points, harvest full!

Applicable audience

This article is positioned in the entry, advanced, actual combat so, will take care of a certain programming experience, have a certain understanding of programming beginners, but also take into account the relatively senior developers! The following readers can easily learn this book:

  • College or technical college students majoring in computer science with basic English
  • Java Language Beginner
  • Students who have spent several months studying the Java language at a training institution
  • Technicians who need to improve their hands-on skills
  • Familiar with Java frameworks, such as SSH (Struts+ Spring +Hibernate SSM (Sping+SpringMVC+MyBatis), JFinal SpingMVC, Struts Hibernate, People who want to learn about new technology development, testing, and project management
  • Skilled in Java EE Java SE and want to switch to Sp ING Boot
  • Developers who have worked in other languages, such as PHP # and Python
  • Worked with other language frameworks such as Laravelii, Thinkphp, Symfony and Zend; Developers who want to switch to the Java language (this type of developer is particularly easy to switch to SpringBoot)
  • Developers who can use the Scala Java Oovy Katlin JVM language

Spring Boot profile

The Java (object-oriented programming language) has evolved over the past 30 years and has produced many excellent frameworks. Spring used to be one of the most popular Java frameworks, but with scripting languages like Node Ruby, Groovy, and PHP booming, developing applications using Sp RIN became cumbersome. Pi Votal Softwa started Sping Boot in 2013 because of the large number of XML configuration files, cumbersome configuration, difficult integration, and the need for a new fast development framework to solve these problems.

The original intention of THE design of Sp ING Boot is to solve the problem that the configuration of various versions of Sp IN is too heavy, simplify the initial construction process, reduce the difficulty of sending personnel need to focus on the function and business logic of the application, and do not need to spend much time in the configuration

Sp ING Boot uses the concept of “default is greater than configuration”, providing a lot of already integrated case, so that programmers in the development of applications can achieve zero configuration or minimal configuration at the same time, in order to lose flexibility, it also supports custom operations!

Spring Boot features

1. Easy to use

Spring Boot supports easy annotation of class definition and function development, no code generation and XML configuration easy for beginners to get started.

2. The configuration is simple

Sp ing Boot automatically configures beans based on the JAR classes in the classpath. This coffee is using Java Beans “grinding out so they use a” bean “to many library class name naming classes in the Java language, more high with coffee, such as a – Java Beans Beans Beans a – NetBeans networks object bean ObjectBeans), configuration can be done automatically At the same time, It also supports custom configurations!

3. Provides a large number of simplified starter configurations

SpingBoot provides a large number of staters to simplify dependency configuration. For example, if you want to use Redis, you only need to add the Starter dependency of Redis, spring-boot-starter-data-redis, to the pum. XML file. Then SpringBoot will automatically load the relevant dependency packages and extract Redis operation API (Application Pogramming lnteface).

4. Natural integration with cloud computing

Spring Cloud, a very popular microservices development framework, is also implemented based on SpringBoot

5. Simple monitoring

It provides a set of functional modules for monitoring and managing application status, including monitoring application process information, memory information, application health status and so on

Setting up the Springboot environment

Due to the limited content of this article, I will share the PDF file of this tutorial below, which is free to download on Github. I have downloaded the file, and if you need it, you can follow my official account: Qiqiyouguang for free!

  • Set up the environment
  • Install the Java development environment JDK
  • Configure JDK environment variables
  • Familiar with maven
  • Install and configure Maven
  • How Maven works

Use development tools

  • Install the development tool IDEA and plug-ins
  • Configure the Maven environment for IDEA
  • Install the Spring Assistant plug-in
  • Install the plug-in Lombok

Spring the Boot into the order

  • Know the Spring AOP
  • Concepts in AOP
  • Manage logs AOP style
  • Learn about IOC containers and servlet containers
  • Arrange beans with loC baskets
  • Use Se vlets to process requests

Basic concepts of RabbitMQ

  • Producers, consumers and agents
  • The message queue
  • switches
  • The binding
  • channel
  • Message to confirm

Six working modes of RabbitMQ

  • A simple model
  • Work queue mode
  • Switch mode
  • Routing Forwarding mode
  • Subject forwarding mode
  • The RPC model

Actual Project

  • Develop enterprise-level general background system
  • Use JPA to implement mappings between entities
  • Creating user entities
  • Creating role entities
  • Create permission entities

Implement shopping system

  • Design data sheet
  • Realize commodity display function
  • Implement shopping cart function
  • Redis is used to persist shopping cart data

Redis is used to realize distributed seckill system

Realize settlement and payment functions

conclusion

This knowledge summary based on SpingBoot 2.X version, using knowledge points + examples in the form of writing, through 58 knowledge points based on examples +2 comprehensive projects, a comprehensive explanation of the main technical principles and applications of Springboot!

The obscure theory through the combination of pictures and texts to explain, the inconvenient to understand the noun with popular words to explain, each abstract knowledge point paraphernalization of the example to show, suitable for readers to read both understand the theory and concept, but also immediately learn how to use!

The last

Welcome to pay attention to my public number: bright future! Get this full springboot tutorial on Github!