Tagged

mybatis

A collection of 311 posts

mybatis

springboot integrates mybatis (with complete demo)

springboot-mybatis learning record📝 table of ContentsOverall code structureIntroduce dependencies and configuration-pom.xml-application.xml-generatorConfig.xmlManually add sql exampleApplication.javatestOverall code structureProject address: https://github.com/rowlingz/springboot_mybatis_learn Introduce dependencies and configuration-pom.xml<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.

the road to learning the persistence layer framework

One: MyBatis parses the global configuration file

table of Contents The disadvantages of traditional JDBC compared with Mybatis Traditional JDBC The problems of traditional JDBC are as follows: Mybatis's solution to traditional JDBC A brief introduction to MyBatis Mybaits overall system diagram MyBatis source code compilation Startup process analysis Brief summary The disadvantages of traditional JDBC compared

java debug

MyBatis account password is correct to connect to the database, but Access denied problem still occurs

Problem description and solutionWhen writing a sample program that MyBatis reads data from the database, the following error message always appears: Exception in thread "main" org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) ### The error may exist

backend framework

Mybatis concise tutorial

Article DirectoryMybatis1. Get started quicklyTwo, log additionThree, Mybatis object analysis1. Resources2. SqlSessionFactoryBuilder3. SqlSessionFactory4. SqlSessionFourth, improve MybatisUtil1. ThreadLocal2. Use ThreadLocal to rewrite3. SummaryFive, input mapping1. Use subscripts (not recommended)2. Use annotations3. Use mapSix, output mapping1, resultType2. resultMap3. The processing method of the inconsistency between the columns in the database table