MyBatis cache | MyBatis series

Related articles MyBatis collection summary: MyBatis series preface Shock! MyBaits has a cache? I don't know. It's out of date~Although we usually do not use it in development, it is necessary to understand it!In actual work, the cache we use is usually Redis. Interested students can go to see the series of Redis articles I wrote earli ...

Added by echox on Thu, 10 Mar 2022 03:11:13 +0200

Spring boot data access

Spring boot(6) data access Learning video: https://www.bilibili.com/video/BV19K4y1L7MT?p=62&spm_id_from=pageDriver 1. Automatic configuration of data source - HikariDataSource 1.1 importing JDBC scenarios <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spr ...

Added by glenelkins on Tue, 08 Mar 2022 14:27:47 +0200

mybatis series summary

1. Introduction 1.1 what is mybatis ● MyBatis is an excellent persistence layer framework ● it supports custom SQL, stored procedures and advanced mapping. ● MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can configure and map primitive types, interfaces and Java POJO s (Plain Old ...

Added by adrianl on Tue, 08 Mar 2022 14:11:44 +0200

MyBatis detailed tutorial

MyBatisDirectory treetb_user.sql ```sql create database mybatis; use mybatis;drop table if exists tb_user;create table tb_user( id int primary key auto_increment, username varchar(20), password varchar(20), gender char(1), addr varchar(30));INSERT INTO tb_user VALUES (1, 'zhangsan', '123', 'male', 'Beijing');INSERT INTO tb_user VALUES (2, 'Li ...

Added by methodman on Tue, 08 Mar 2022 05:05:24 +0200

sql practical optimization and misunderstanding

sql common pit + optimization How many of the eight common SQL misuses did you get? Alibaba cloud RDS expert delegation Java 2022-02-28 09:09 Introduction: Alibaba cloud RDS expert service team has helped cloud customers solve many urgent problems. Some common SQL problems in ApsaraDB expert diagnosis report are summarized as follows for your ...

Added by ashutosh.titan on Mon, 07 Mar 2022 11:31:39 +0200

Build springboot based backend project 1 from 0

idea will build the springboot project in the next step First, create a new project Select name shoulder Language: java Type: Mavan First, import some common dependencies for testing After the project is built, the initial directory structure is as follows . idea is the configuration of idea, regardless We mainly write various codes in src ...

Added by mark_kccs on Sun, 06 Mar 2022 17:18:03 +0200

CURD and MyBatis profiles

2.1 CURD Add method in Dao interface int insert(User user); int deleteById(@Param("id") int id); int update(User user); User selectById(@Param("id") int id); Add SQL in mapping file <insert id="insert" parameterType="user"> insert into user(id,name,pwd) values(#{id},#{name},#{pwd}) </insert> <delete id="deleteById" param ...

Added by LanHorizon on Sun, 06 Mar 2022 12:22:23 +0200

Explore Spring principles

Explore Spring principles Explore IoC principles First, let's have a general understanding of the loading process of ApplicationContext: We can see that the whole process is extremely complex and cannot be explained in one sentence, so let's start with ApplicationContext. Because the source code of Spring is extremely complex, it is impossible ...

Added by AsianGuyJTran on Sun, 06 Mar 2022 07:03:51 +0200

[spring] spring integration Mybatis source code analysis

Brief introduction to spring integration Mybatis This article focuses on mybatis spring 1.3.2!The core idea of integration: become the Bean of spring.Implementation of integration: spring Based FactoryBean. Mybatis spring 1.3.2 integration idea Mappercannerregister class is imported through @ mappercan.The mappercannerregister class implemen ...

Added by Jordi_E on Sat, 05 Mar 2022 17:32:41 +0200

Conclusion of Spring boot integrated learning 1.0: exception handling, integration of Mybatis, transaction, cache, JPA, dynamic log, RabbitMq, sending mail, background operation and deployment

https://blog.didispace.com/spring-boot-learning-1x/ 1. Unified exception handling of application Spring Boot provides a default mapping: / error. When an exception is thrown during processing, it will be transferred to the request for processing, and the request has a global error page to display the exception content. Access a nonexistent U ...

Added by mizz key_me on Sat, 05 Mar 2022 09:12:53 +0200