Beauty of mybatis source code: 2.2. Convert DOM corresponding to mybatis global configuration file to XNODE object

Convert DOM corresponding to mybatis global configuration file to XNODE object In the above, we have completed the construction of XmlConfigBuilder object and prepared the basic environment for parsing XML files. So the next step is to call the parse() method exposed by XmlConfigBuilder to complete the parsing of mybatis configuration file. pub ...

Posted by lupus2k5 on Fri, 05 Jun 2020 08:15:43 +0200

SpringBoot open source blog project based on Fly community template

1. Official website address Demo address on official website https://fly.layui.com/ Template download address: https://www.layui.com/template/fly/ Detailed development documents: https://www.sunnyblog.top/index.html?typeId=1260457825721647104 2. Technology stack Development tool Idea Database design JDK version Java8 Database MySQL v5. ...

Posted by chiefmonkey on Mon, 25 May 2020 16:15:07 +0200

Spring Boot integrates MyBatis Mapper (TkMybatis)

Learn to integrate MyBatis Mapper (TkMybatis) in Spring Boot. The general Mapper is a framework that can implement any MyBatis general method. The project provides normal addition, deletion, modification and query operations as well as Example related single table operations. General Mapper is used to solve 90% of the basic operations in MyBati ...

Posted by peacedesigns on Mon, 25 May 2020 05:16:31 +0200

Review of SSM environment construction

Editor: IDEA System: Win 10 Package management: maven SSM: SpringMvc,Spring,MyBatis 1, Build father son project of maven Establish the parent project review of ssm first_ ssm Then the domain, dao, service and utils sub modules are established respectively, and finally the web module built with maven's webapp skeleton is created Remember ...

Posted by KeitaroHimura on Sun, 24 May 2020 18:09:57 +0200

Let's use the mybatis framework to add, delete, modify and query mysql database in java

This article will use a simple login comment function to fully introduce the use of mybatis framework. Functions: add, delete, modify, query, multi table query, fuzzy query, dynamic query This article uses the environment / tools: Database: mysql 5.7 JDK:8 IDEA:2020.1 Database visualization tool: Navica ...

Posted by ponsho on Mon, 18 May 2020 08:11:13 +0200

JAVA lazy development: mybatis generator installation and use (spring tool suite)

java lazy development: mybatis generator generates the corresponding entity class, xml Mapper file, interface and help class according to the table design in the database. Take spring-tool-suite-3.9.2.RELEASE as an example: install Introduction package <dependency> <groupId>org.mybatis.generator</groupId> <artifa ...

Posted by benyamin on Mon, 04 May 2020 05:54:22 +0200

Integration of ssm based on annotation

ps: it's relatively simple. It's used to lay the foundation for us to use springboot 1: Objectives Integration: springmvc+spring+mybatis+maven Small function: query all user information 2: Integration ideas: pom dependency configuration file Run through a small function 3: Integration steps: (1) New maven project (2) pom dependency ...

Posted by dbradbury on Thu, 23 Apr 2020 12:14:24 +0200

Mybatis framework -- mybatis reverse engineering

< center > mybatis reverse engineering < / center > ​ The purpose of reverse engineering is to reduce our development time. The so-called Mybatis reverse engineering is that Mybatis will automatically generate pojo, mapper and mapper.xml according to the data table we have designed. The next step is the project construction proces ...

Posted by FastLaneHosting on Wed, 22 Apr 2020 18:14:12 +0200

mybatis executes a sql process

An insert operation Take the simple operation of saving a record to the table as an example. Follow this example to track how the MySQL statement executes. To save a user record to the table: sqlSession.insert("x.y.insertUser", user); First of all, we need to look at the sqlsession ා insert method, and find the specific implementation in the D ...

Posted by myshoala on Wed, 08 Apr 2020 06:24:07 +0200

[MyBatis] learning summary 6: dynamic SQL

Introduction Dynamic SQL: dynamic SQL. In this section, we will learn from the official documents of MyBatis. Description The official description is as follows: One of the most powerful features of MyBatis has always been its Dynamic SQL capabilities. If you have any experience with JDBC or any similar framework, you understand how painful it ...

Posted by Squiggles on Mon, 30 Mar 2020 23:25:00 +0200