Let's talk about 12 scenarios of spring transaction failure

preface For students engaged in java development, spring affairs must be familiar. In some business scenarios, the data of multiple tables needs to be written simultaneously in one request. In order to ensure the atomicity of operations (success or failure at the same time) and avoid data inconsistency, we generally use spring transactions. ...

Posted by kindoman on Thu, 04 Nov 2021 02:50:17 +0100

How does Spring automatically inject multiple types?

Grasp the small tail at the end of October to explore how the internal fields of SpringBean inject multiple types There is often a small problem around me. How does Spring load field characters? Why does Spring support so many types such as Collection, List, Map and String? Are there any tips worth learning in the process of Spring injecti ...

Posted by sbunse on Tue, 02 Nov 2021 09:37:59 +0100

Dynamic call when there are multiple implementation classes in the interface

Copyright notice: This article is the original article of CSDN blogger "Emine Wang", which follows the CC 4.0 BY-SA copyright agreement. Please attach the original source link and this notice for reprint. Original link: https://blog.csdn.net/a718515028/article/details/72457436 Raising questions In practice, we often encounter on ...

Posted by Tarsonis21 on Mon, 01 Nov 2021 06:43:36 +0100

SpringBoot implements Excel import and export, which is easy to use, and POI can be thrown away

In our daily work, we often encounter the function of operating Excel, such as exporting an Excel report of user information or order information. You must have heard of POI, which can be realized. But the API implemented by POI is really troublesome. It needs to write line by line parsing code (similar to Xml parsing). Today, I recommend a ver ...

Posted by tysoncane on Sun, 31 Oct 2021 09:53:12 +0100

Spring source code analysis - beanfactoryprocessor

Spring source code analysis - beanfactoryprocessor The blogger's technology is limited, so this article will inevitably make mistakes. If you find it, please comment and point it out in a private letter. Thank you The beanfactoryprocessor interface is an extension point for beans provided by Spring. Its sub interface is BeanDefinitionRegistry ...

Posted by Braimaster on Sun, 31 Oct 2021 04:42:02 +0100

Spring circular dependency and its solution

1. What is circular dependency? Bean A depends on B, and Bean B depends on A. in this case, circular dependency occurs. Bean A → Bean B → Bean A Circular dependencies caused by more complex indirect dependencies are as follows. Bean A → Bean B → Bean C → Bean D → Bean E → Bean A 2. What is the result of circular dependency? When Spring is lo ...

Posted by wildmanmatt on Sat, 30 Oct 2021 16:10:37 +0200

@Detailed explanation of the difference between Configuration and @ Component as Configuration classes

Preface: This article mainly introduces the differences between @ Configuration and @ Component as Configuration classes in detail. It is introduced in great detail through example code, which has certain reference and learning value for everyone's study or work. Friends who need to learn together with Xiaobian 1. Class of @ configura ...

Posted by rfighter on Fri, 29 Oct 2021 13:49:50 +0200

Spring - understand spring transactions, isolation and propagation

The importance of transactions is self-evident. Spring also provides very rich support for transactions, with all kinds of supported properties. However, many small partners know that there are two properties: Isolation Transmissibility 1. What is a transaction Database transaction refers to a series of operations performed as a single lo ...

Posted by longtone on Thu, 28 Oct 2021 21:51:12 +0200

Spring Bena manages XML and annotation methods

catalogueWhat is Bean managementTwo ways of Bean managementxml based approachCreate objects (xml based)Injection properties (xml based)Dependency injection (DI)Injection using parameterized constructsp namespaceInject special type attributesInject external bean sInject internal bean sCascade assignmentInject collection type propertiesInject col ...

Posted by alexweb on Thu, 28 Oct 2021 21:21:45 +0200

Introduction to Mybatis from novice village to fighting low-level wild monsters

Course objectives Build MyBatis development environmentComplete the operations of adding, deleting, modifying and querying a single table based on annotationsComplete the operations of adding, deleting, modifying and querying multiple tables based on annotationsComplete the operations of adding, deleting, modifying and querying a single table ...

Posted by Ne0_Dev on Thu, 28 Oct 2021 15:00:34 +0200