Responsibility chain model of behavior model

1 General Chain of responsibility pattern is a common behavior pattern. It encapsulates the processor into a processing chain, so that the request can be delivered on the chain. The processor on the chain decides whether to process the request or not. 2 responsibility chain mode A typical usage scenario of responsibility chain mode is when an e ...

Added by Nymphetamine on Sat, 06 Jun 2020 13:17:26 +0300

Introduce mybatis-plus to report an Invalid bound statement error. Move your finger to change one place

error Mybatis-Plus (MP) is an enhancement tool for mybatis. On the basis of mybatis, only enhancements are made without changes, which simplifies the development efficiency.This is to help us encapsulate some simple curd methods that can be called directly without rewriting these simple sql statements, just like JPA. A new project was created t ...

Added by zenix on Thu, 28 May 2020 06:02:40 +0300

Spring transaction management [Focus]

Spring transaction management Commit and rollback transactions to spring   1, Brief introduction In Java EE development, transactions are in the Service layer, Judged by the program: in case of abnormal transaction rollback, no abnormal transaction commit occurs. Spring uses AOP technology for transaction control, and helps developers t ...

Added by fredroines on Tue, 05 May 2020 21:50:16 +0300

tyboot - Rapid development of scaffolding based on Spring Boot

tyboot Source code: https://gitee.com/magintursh/tyboot https://github.com/magintursh/tyboot If you like, you can give a star for more people to see. introduce tyboot is a springboot-based service-side scaffold for the rapid development of single services. You need a micro-service solution to see another project, tycloud (still under improveme ...

Added by peterg012 on Sun, 03 May 2020 14:28:45 +0300

Mybatis dynamic SQL query and update

Queries are often used to < if > < choose > < when > < otherwise > < trim > tags, and they all support ognl expressions --|The < if > condition judgment is the same as if in Java, such as <if test="id!=null and id!=''"> --|< choose > is just like Java's switch with break, which is used with < ...

Added by clio-stylers on Sun, 03 May 2020 09:51:47 +0300

Java Web Learning Notes - mybatis-07-dao development and use (mapper agent development)

Need to write mapper interface (equivalent to dao interface) mapper.xml mapping file needs to be written mybatis can automatically generate proxy objects of mapper interface implementation classes Development specification 1. namespace in mapper.xml is equal to the address of mapper interface 2. The method name in the mapper.java interfac ...

Added by Zomie on Fri, 01 May 2020 01:27:37 +0300

A good paging plug-in of Mybatis com.github.pagehelper

1. Need to import the jar package of PageHelper If maven is not used, just import the jar package into the lib folder. The PageHelper plug-in has open source on github, Address: https://github.com/pagehelper/Mybatis-PageHelper/tree/master/src/main/java/com/github/pagehelper.   If maven is used, the plug-in can be introduced in pom.xml as fol ...

Added by Arnerd on Wed, 29 Apr 2020 18:57:15 +0300

MyBatis L2 cache implementation details and precautions

Introduction to L2 cache In the first level cache mentioned above, the largest sharing range is within a SqlSession. If multiple sqlsessions need to share cache, they need to use the second level cache. After the second level cache is enabled, the cachenexecutor will be used to decorate the Executor. Before entering the query process of the fir ...

Added by sabien on Mon, 27 Apr 2020 12:20:29 +0300

Upfront - backstage - environment building

1, Create pom project Name: atcrowdfunding01-admin-parent GroupId: com.atguigu.crowd 2, Create module: atcrowdfinding02 admin webui atcrowdfunding02-admin-webui 3, Create module: atcrowdfinding03 admin component     4, Create module: atcrowdfunding 04 admin entity   5, Create module: atcrowdfinding05 commo ...

Added by bacil on Tue, 21 Apr 2020 17:15:44 +0300

Why are people reluctant to use Mybatis after JOOQ is used in the project?

Preface: (welfare at the end of the article) Today I'd like to introduce a new ORM framework - > jooq. Maybe many friends haven't heard of this framework Mybatis framework has been used as the persistent layer access framework in Java projects before. However, some recent projects have been developed with JOOQ framework, indicating that the ...

Added by andrewdunstall on Tue, 21 Apr 2020 09:59:26 +0300