Spring Boot Tutorial 4: Using Druid and Monitoring Configuration

Druid is the best database connection pool in the Java language and provides powerful monitoring and extension capabilities. After comparing Druid with HikariCP, although HikariCP has a higher performance than Druid, Druid includes many dimensions of statistical and analytical functions, which is why everyone chooses t ...

Added by cwarn23 on Sat, 04 Jul 2020 18:32:49 +0300

Spring source code interpretation of "IOC container 2-Bean loading process"

In the last article, we implemented a simple IOC container. In this article, we will introduce the implementation of Spring IOC container. 1. Preparation In order to learn the source code implementation of Spring, we need to prepare the source code environment of Spring. At this time, we generally ...

Added by djg_uk on Tue, 30 Jun 2020 09:33:14 +0300

One article completes Spring Security exception handling mechanism!

Today, let's talk about the exception handling mechanism in Spring Security. In Spring Security's filter chain, the ExceptionTranslationFilter filter is specially used to handle exceptions. In the ExceptionTranslationFilter, we can see that exceptions are divided into two categories: authentication exceptions and authorization exceptions. The t ...

Added by trazan on Tue, 30 Jun 2020 05:57:58 +0300

XML Configuration for AOP

Basic usage steps Imagine a scenario where there is a business layer for saving and updating accounts and deleting them, but what do I do when I print logs for saving, updating, and so on? If we add code directly to the business tier, it's equivalent to adding code that doesn't matter.So here you can ...

Added by stevegg1965 on Mon, 29 Jun 2020 19:52:45 +0300

Spring source code third bullet! What the hell is EntityResolver?

Last article I talked with my friends about the parsing process of XML files in Spring source code. I could have continued to look down to load core classes, but SongGe still hopes to be a little slower. Since I have to learn to understand, I can learn from XML There are also some other classes and concepts involved in the process of file parsi ...

Added by ureck on Mon, 29 Jun 2020 05:02:29 +0300

Introduction to spring boot project

Recently, I watched a lot of spring boot teaching videos. I felt they were too long, and there was no actual combat of the project. Today, according to a blogger to write a simple user system to add, delete, modify and check, the source code can refer to the second issue of the article. This project use ...

Added by ecco on Sun, 28 Jun 2020 08:52:33 +0300

With all due respect, you may not be able to use java Part 7: sorting collections like SQL

Before I start, let me ask you a question: we now have an Employee class. @Data @AllArgsConstructor public class Employee { private Integer id; private Integer age; //Age private String gender; //Gender private String firstName; private String lastName; } Do you know how to sort a List set of Employee objects in reverse or ...

Added by mjh513 on Sun, 28 Jun 2020 03:41:37 +0300

Microservice - call of service

typora-copy-images-to: imgs Call between microservices 1. Call of microservice - Ribbon + resttemplate (independent component) 1. What makes Ribbon Ribbon is a client-side load balancer, which is used to call the load balancing of microservices between spring cloud 2. Load balancing between se ...

Added by PcGeniusProductions on Fri, 26 Jun 2020 09:14:44 +0300

Five minute experience of distributed transaction framework Seata

seata is an open source distributed transaction solution dedicated to providing high-performance and easy-to-use distributed transaction services. seata will provide users with AT, TCC, SAGA and XA transaction modes, and build a one-stop distributed solution for users. The purpose of this tutorial is to provide a quick start to the case of seat ...

Added by Cogen on Thu, 25 Jun 2020 07:25:46 +0300

Distributed timing task -- XXL job learning: source code analysis -- actuator startup process

Distributed timing task -- XXL job learning (2): source code analysis -- actuator startup process preface 1, Start of actuator 1.1 analysis of the core class XxlJobSpringExecutor 1.1.1 initJobHandlerRepository() 1.1.2 initJobHandlerMethodRepository() 1.1.3 GlueFactory.refreshInstance(1) 1.1.4 super.start() ...

Added by Azad on Thu, 25 Jun 2020 05:17:05 +0300