Things management and caching in MyBatis

Things about MyBatis The concept of things In the framework of Java language database, the transaction management of database is very important. Each business logic is completed by a series of database accesses, which may modify multiple data records. This series of modifications should be a whole, and it is absolutely not allowed to modify onl ...

Posted by Sonic_Rage on Tue, 26 Nov 2019 06:13:06 +0100

MybatisGenerator extension: Custom comment generator

MybatisGenerator extension: Custom comment generator I believe you have a certain understanding of the mybatisgenerator. I love and hate it. The code generated by the mybatisgenerator plug-in will generate comments, which are all useless to us. Although it can prevent the generation of comments, it is not good to have no comme ...

Posted by trrobnett on Mon, 25 Nov 2019 20:57:54 +0100

Integrating Spring and Spring MVC

1. The relationship between spring container and spring MVC container Spring container is a parent container, and spring MVC container is a child container, which inherits from spring container. Therefore, in the spring MVC container, you can access the beans defined in the spring container, while in the spring container, you cannot access the ...

Posted by jfugate on Sun, 24 Nov 2019 15:36:31 +0100

Springboot 2.0+activiti 7 Integration--Initial knowledge of activiti and database creation

1. Initial Actiti Because of recent project requirements requiring the use of processes, the active process framework has been chosen. Most of the integration of springboot version 2.0 and activiti6.0 is online. Since the project already uses springboot 2.0, the process of integrating activiti7 is recorded. Personal impression of activiti: 1. ...

Posted by wolfan on Thu, 21 Nov 2019 09:37:14 +0100

How to play with database in SpringBoot

Using JDBC Step 1: add dependency In the previous article, we talked a lot about how to reimport after adding dependency, which is not repeated here <!-- JDBC --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> ...

Posted by coffejor on Wed, 20 Nov 2019 23:01:18 +0100

Mybatis-Spring Source Analysis

Analyzing how Mybatis integrates into the framework using Spring's extension points, Mybatis's own extension points are no longer covered in this analysis Build environment Upload Github https://github.com/mybatis/spring .After several unsuccessful attempts through Git, the zip package was directly downloaded and imported into Idea. The imp ...

Posted by lice200 on Wed, 20 Nov 2019 08:01:31 +0100

MyBatis implements basic CRUD and unit test

Overall project structure bean code package bean; public class Apply { private long id; private String sname; private String qq; private long enterTime; private String type; private String school; private long number; private String repLink; private String goal; @Override public String toString() { ...

Posted by qaladien on Mon, 18 Nov 2019 16:52:59 +0100

Introduction to the use of SPI

spi is the abbreviation of Service Provider Interface. Using spi technology, we can change the implementation class of an interface in a program by modifying the configuration, so as to change the program behavior. The usage of spi is as follows: Define the interface. package com.foo.bar.service; public interface Foo { String foo(String n ...

Posted by Joe Haley on Sat, 16 Nov 2019 21:05:53 +0100

springDataJpa best practices

Preface The goal of the Spring Data Jpa framework is to significantly reduce the amount of boilerplate code required to implement the data access layers of various persistent stores. The central interface in the Spring Data Jpa Repository abstraction is Repository. It needs domain entity class and domain entity ID type as type parameters for ma ...

Posted by MasterHernan on Tue, 12 Nov 2019 13:01:11 +0100

Spring Boot series: Spring Boot integrated timing task Quartz

I. about Quartz Quartz is another open source project of OpenSymphony open source organization in Job scheduling field. It can be combined with J2EE and J2SE applications or used alone. In java enterprise applications, quartz is the most widely used timing scheduling framework. Main concepts in Quartz: Scheduler: the main API for scheduling ta ...

Posted by les4017 on Sat, 09 Nov 2019 16:49:31 +0100