Spring boot source code in-depth study | startup process analysis

review The previous article talked about the general startup process of springboot: [1] Get listener [2] Prepare the environment [3] Console print Banner [4] Create containers, and create different containers according to different types [5] Instantiate an exception reporting period instance to record errors during startup. [6] Prepare the cont ...

Posted by php4om on Tue, 17 May 2022 17:53:28 +0300

Redis does interface current limiting, which is an annotation!

In addition to caching, Redis can also do many things: distributed locking, flow limiting, idempotency of request processing interface... Too much, too much ~Today, I want to talk with my friends about how to use Redis to deal with interface current limitation. This is also the knowledge point involved in the recent TienChin project. I'll bring ...

Posted by harley1387 on Tue, 17 May 2022 16:48:56 +0300

[SpringBoot DB series] h2databse integration example demo

[SpringBoot DB series] h2databse integration example demo H2dabase is a memory based database, which is more common in the use scenario of embedded database. It has small dependence and complete functions; Generally speaking, it is not used in many normal business projects, but it is useful in some special case s, such as unit testing, busines ...

Posted by Mark Nordstrom on Tue, 17 May 2022 15:18:57 +0300

SpringBoot foundation and partial integration (to be improved)

SpringBoot What is micro service What is the difference between microservices and the past Why is SpringBoot suitable for microservice framework Lack of SpringBoot or microservice springBoot startup process How to automatically assemble and customize the configuration of springBoot First, there are a few notes @Configuration: declar ...

Posted by dkjariwala on Tue, 17 May 2022 13:38:37 +0300

The service Gateway of Spring Cloud integrates Swagger components

Spring Cloud's service gateway gateway (II) integrates Swagger components summary Swagger is a visual API testing tool, which can effectively build powerful Restful API documents and save interface document management If the code is modified, the API document will be updated in real time And it can partially replace Postman to debug the inte ...

Posted by Gomesh on Tue, 17 May 2022 11:37:00 +0300

SpringBoot integrated task Scheduler

SpringBoot integrated task Scheduler Basic steps Step 1: introduce pom dependency <!--Support task scheduling--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> Step 2: enable Task Scheduling Supp ...

Posted by denzlite on Tue, 17 May 2022 01:24:21 +0300

SpringBoot core ① - getting started

SpringBoot core ① - getting started Based on the compilation of teacher Lei Fengyang's tutorial brief introduction A framework to simplify Spring application development;A large integration of the whole Spring technology stack;One stop solution developed by J2EE; Baidu Encyclopedia advantage Quickly create independent Spring projects and integ ...

Posted by morris520 on Mon, 16 May 2022 12:06:29 +0300

Commonplace toolkit for spring AOP log collection and processing

AopLog is a logging toolkit based on Spring Aop and ThreadLocal to intercept and process request method content logs. Scenario: At present, most of the methods of using Spring Aop to intercept parameter logs are basically the same. I don't want to write such Aop interception and processing log code for every project in the future, or even code ...

Posted by quick5pnt0 on Mon, 16 May 2022 08:45:34 +0300

Personal learning series - Spring Boot integration UReport2

It is always necessary to generate various reports in work, which is very troublesome. Recently, I found a UReport2, which is said to be able to realize complex Chinese style reports. I'm a little excited... 1. Create a new springboot project 1.1 pom.xml <dependency> <groupId>org.springframework.boot</groupId> <arti ...

Posted by skoobi on Sun, 15 May 2022 22:28:19 +0300

SpringBoot consolidated database

Data catalogue Data 1. Configuration file 2. Test use 3. CRUD 4. Druid 1. Import dependency 2. Specify the data source and configure Druid 3. Bind Druid to spring datasource 4. Enable background monitoring 5. Set the Filter for background monitoring 5. MyBatis 1. Import dependency 2. Write entity class 3. Write Dao layer 4. Integrate Myb ...

Posted by ltoso on Sun, 15 May 2022 14:20:01 +0300