[Spring] expand LocalValidatorFactoryBean under Spring Boot to realize the parsing of custom results

preface Generally, the Spring Boot project introduces the specific implementation dependency of the validation API under the Java EE specification, such as hibernate validator, to implement annotation based parameter and result verification at the method level, such as: // The implementation class should be annotated with @ Validated publ ...

Posted by Kilo on Sun, 16 Jan 2022 22:53:02 +0100

Spring 5 framework notes summary

1. Spring5 transactions What is a transaction? Transaction is the most basic unit of database operation. Logically, it is a set of operations. Either all succeed. If one fails, all fail. Four characteristics of transactions: Atomicity, consistency, isolation, persistence. A case we often encounter is the problem of bank transfer. ...

Posted by judgenules on Sun, 16 Jan 2022 13:09:43 +0100

Domain Primitive (DP) of DDD

preface: DDD is an architectural idea, not a framework. Domain Primitive: What is DP? It is the "basic data structure" in DDD. Like int and string in Java, it is the only way for us to learn. It's a little abstract. Let's illustrate it through a case. For the user registration function, you need to enter the user's name, telephone ...

Posted by Mgccl on Sun, 16 Jan 2022 08:06:41 +0100

Spring - IOC (inversion of control)

Learn the SPringle framework. IOC is one of the core contents. Today, let's summarize and talk about the understanding of IOC in Spring 1. What is IOC? Inversion of control is not a technology, but an idea. The learning of ideas is slightly difficult to understand compared with code. IOC is to give your designed object to the container contro ...

Posted by jcanker on Sun, 16 Jan 2022 04:38:32 +0100

Spring series, spring transaction management mechanism

For the integrated configuration of soring and mybatis, refer to the previous chapter Spring series (VII). Integration of spring and MyBatis framework 8 Spring transaction management mechanism In spring, transactions are submitted automatically, but when we operate data, there are always some business processes that need transaction control. ...

Posted by Dingbats on Sat, 15 Jan 2022 23:03:40 +0100

Spring source code - core interface SmartInitializingSingleton&InitializingBean

#Spring source code - core interface smartinitializingsingleton & initializingbean Spring version: Spring 5.3.13-release #1. Core interface smartinitializingsingsingleton Smartinitializingsingsingleton interface: public interface SmartInitializingSingleton { /** * Invoked right at the end of the singleton pre-instantiation ph ...

Posted by shavas on Sat, 15 Jan 2022 19:32:47 +0100

RabbitMQ release confirmation

Release confirmation Release confirmation principle The producer sets the channel to confirm mode. Once the channel enters the confirm mode, all messages published on the channel will be assigned a unique ID (starting from 1). Once the message is delivered to all matching queues, the broker will send a confirmation to the producer (including ...

Posted by mushroom on Sat, 15 Jan 2022 17:52:53 +0100

Learning of Spring Boot Starter

Learning of Spring Boot Starter This tutorial is based on the black horse programmer Java Pinda general permission project, BiliBili link: https://www.bilibili.com/video/BV1tw411f79E?p=6 Spring Boot greatly simplifies the initial construction and development process of the project, which are completed through the starter provided by Spring Bo ...

Posted by myanavrin on Sat, 15 Jan 2022 16:54:30 +0100

SqlSession used by mybatis spring

In MyBatis, you can use SqlSessionFactory to create SqlSession. Once you get a session, you can use it to execute mapped statements, commit or rollback connections, and finally close the session when it is no longer needed. After using MyBatis Spring, you no longer need to directly use SqlSessionFactory, because your bean can be injected into a ...

Posted by graziano on Sat, 15 Jan 2022 16:33:16 +0100

Raytheon springboot notes

Raytheon SpringBoot learning notes Tip: there may be typos in the notes while watching the video. Please forgive me. Video address: https://www.bilibili.com/video/BV19K4y1L7MT?p=86&spm_id_from=pageDriver# 1, Background of the times 1. Microservice Era Microservices are an architectural style An application is split into a group of smal ...

Posted by hdpt00 on Sat, 15 Jan 2022 13:38:07 +0100