Spring Boot [Component Learning-MyBatis]

Introduction: In the previous article, we introduced some common methods of spring-data-jpa. In this article, we introduced the integration of mybatis and Spring Boot, and some common methods. Integrate: There are two ways to integrate Spring applications, one is the integration of Spring Boot applications, and the other is the integration of S ...

Posted by Jimbit on Tue, 16 Jul 2019 02:49:39 +0200

Springboot MyBatis Multiple Data Source Switching

Springboot MyBatis Multiple Data Source Switching In practical development, we may use multiple databases for a project, usually one database for a data source.In this example, switch between multiple data sources in two ways 1) Manual switch 2) Switch using annotations Code structure: Brief Principle: 1) DataSourceType lists the key-key ...

Posted by fuii_koh on Thu, 11 Jul 2019 19:22:43 +0200

[MyBatis Source Analysis] Configuration Loading (Part II)

Element Settings Continue MyBatis Configuration loading source code analysis: 1 private void parseConfiguration(XNode root) { 2 try { 3 Properties settings = settingsAsPropertiess(root.evalNode("settings")); 4 //issue #117 read properties first 5 propertiesElement(root.evalNode("properties")); 6 loadCustomVfs( ...

Posted by andrests on Tue, 02 Jul 2019 22:23:21 +0200

Application Practice of Java Reflection Mechanism

This article is the author's original, reproduced please declare Blog Origin:) Introduction Java reflection mechanism is a very powerful function. Reflection can be seen in many large projects such as Spring and Mybatis. Through reflection mechanism, we can get the type information of objects at run time. By using this feature, we can realize d ...

Posted by Dave96 on Sun, 30 Jun 2019 23:03:50 +0200

Analysis of MyBatis Plug-in Mechanism

The videos of the following open lessons have been recorded, and students who need them can leave messages. MyBatis is a framework with strong flexibility. MyBatis operates on the persistence layer by providing a simple and easy-to-use plug-in extension mechanism with the help of four components (Executor, Statement Handler, Para ...

Posted by e33basketball on Sun, 23 Jun 2019 21:42:51 +0200

MyBatis Source Learning Environment Preparation

The video of the open class below has been recorded and the students who need it can leave a message MyBatis, an excellent persistence layer ORM framework with a wide range of applications, has become an almost standard part of the Java Web world, supporting customization of SQL, stored procedures, and advanced mappings.MyBatis a ...

Posted by m0rpheu5 on Fri, 21 Jun 2019 18:27:24 +0200

MyBatis Learning Summary (4) - Resolving the Conflict between Field Name and Entity Class Attribute Name

github synchronous update Blog Synchronization Updates Synchronized Updating of Brief Books Project address: Portal In normal development, the field names in our tables and the attribute names of the corresponding entity classes are not necessarily identical. Let's show how to resolve the conflict between the field names and the entity c ...

Posted by ferhanz on Wed, 19 Jun 2019 21:02:47 +0200

Chapter 9 Relational Mapping of MyBatis

In practical development, the operation of database usually involves multiple tables, involving the relationship between objects and objects. MyBatis provides association mapping for operations between multiple tables, which can handle the relationship between objects very well. 9.1 Summary of Relevance Relations One-to-one: Introduce the o ...

Posted by youscript on Sat, 08 Jun 2019 21:51:50 +0200

MyBatis from Shallow to Deep (Practice) - 2

MyBatis Develops DAO(Data Access Object) Two ideas: Original Dao Development Method (Writing Dao Interface and Interface Implementation Class DaoImpl, respectively) With MyBatis, proxy development using mapper interface (equivalent to Dao interface) Expected function Implementing CRUD of Single Table with Dao Interface Example program Primi ...

Posted by terryl on Mon, 27 May 2019 00:53:58 +0200

In-depth introduction to Mybatis series three-configuration details of properties and environments (mybatis source code)

This article is reproduced from Nan Ke Meng In the previous article, Mybatis Series (2) - Introduction to Configuration (Mybatis Source Chapter), through a simple analysis of mybatis source code, we can see that in the mybatis configuration file, under the configuration root node, configurable properties, type Aliases, plugins, objectFactory, o ...

Posted by leetcrew on Fri, 24 May 2019 23:45:21 +0200