Spring Boot 2.x Usage Paper - Database Transaction

Articles Catalogue 1. Spring declarative transactions 1.1 Spring declarative transaction Convention 1.2 Annotation @Transactional Configuration Item 1.3 Spring transaction manager 1.4 Use transactions in Spring Boot 2. Transaction isolation level 3. Transaction Communication Behavior 3.1 Detailed ...

Added by gte806e on Thu, 08 Aug 2019 13:21:04 +0300

Springboot Actual Project 04 Days - The Ape Blog integrates mybatis with global transaction processing

Catalog   Preface Integrate mybatis Import Dependency Configure data source related parameters Custom connection pool Query data (persistent interfaces and mapper files) Transactions in boot project Preface This section focuses on boot integrating mybatis and thymeleaf, then making a simp ...

Added by fresh on Tue, 06 Aug 2019 05:26:01 +0300

mybatis framework learning-traditional dao layer development

Preface mybatis officially recommends using the mapper proxy method to develop the mapper interface. Programmers do not need to write mapper interface implementation classes. When using the mapper proxy method, the input parameters can use pojo wrapper object or map object to ensure the universality of dao. Traditional dao layer development ...

Added by xzilla on Mon, 05 Aug 2019 21:52:01 +0300

Mapper configures dynamic SQL: if, choose, and foreach elements

Splicing of SQL Statements In the previous configuration, whether basic additions, deletions, modifications, or association nesting, set nested queries, the use of SQL statements are very basic, data operations between tables. Turn back to the code you wrote in your freshman year and splice the SQL ...

Added by kelesis on Mon, 05 Aug 2019 10:50:07 +0300

MyBatis - MyBatis realizes adding, deleting, modifying and checking

MyBatis - MyBatis realizes adding, deleting, modifying and checking 1. Create a database2. Create the following structure for the Maven project, remember to mark the java and resources directories as resource directories3. Guide, configure pom.xml <?xml version="1.0" encoding="UTF-8"?> <proje ...

Added by lampquest on Sun, 04 Aug 2019 11:21:18 +0300

Marco's Java

Preface After the previous stage of learning, we have been very familiar with Spring, Spring MVC, Maven, Shiro has entered a door, perhaps a single point of knowledge is not so difficult to understand, but once all things are "burned together", it feels like no clue? So the Shiro+SMM integra ...

Added by djpeterlewis on Sun, 04 Aug 2019 10:29:23 +0300

Spring Cloud Hystrix Fuse Starting from Zero

Preface: Spring Cloud Series Futures Point Here In micro-service architecture, there are usually multiple service layer invocations. The failure of basic services may lead to cascade failures, which may result in the unavailability of the whole system. This phenomenon is called service avalanche effec ...

Added by freeloader on Tue, 30 Jul 2019 18:36:35 +0300

Playing with Type Conversion in mybatis

1. Scene This requirement is common in everyday java development, where 0 or 1 code (not limited to numbers) is used to represent a certain state. For example, 0 for women and 1 for men. And writing to the database may be an identifier, read from the database and restore to specific instructions. And in general, in order to better understand or ...

Added by BrandonK on Tue, 30 Jul 2019 15:49:26 +0300

myBatis: sql execution process

Reprinted from the excellent articles of Nanke Meng Brothers: https://www.cnblogs.com/dongying/p/4142476.html 1. SqlSession Factory and SqlSession. Through the introduction and use of mybatis in the previous chapters, we can all appreciate the importance of SqlSession. Yes, on the surface, we all u ...

Added by Otoom on Tue, 30 Jul 2019 12:54:38 +0300

Mybatis Source Code Analysis

In this article, we will read the source code of Mybatis in depth, hoping that we can not be so afraid of the underlying framework in the future, and learn the good ideas of framework design; Architectural principles Architecture diagram Architectural flow chart The two pictures above are from the internet, but they are very good. They basi ...

Added by mjlively on Sun, 28 Jul 2019 16:17:06 +0300