One level of mybatis cache

For the mybatis framework. It seems to be used in copy all the time. For mybatis caching. There is no accurate cognition. Take advantage of the holiday. Learn the cache of mybatis. This article mainly studies the first level cache of mybatis. Why cache In fact, we have been working for a long time, and we know that many bottlenecks ar ...

Posted by yelvington on Sat, 27 Jun 2020 09:29:25 +0200

Beauty of Mybatis source code: 2.11. Initialize global configuration through settings configuration

Initialize global configuration through settings configuration When it comes to initializing the global Configuration of Mybatis through settings, it is difficult for us to bypass the Configuration object of Mybatis. Configuration object is undoubtedly one of the core objects of Mybatis. It defines many properties and methods. In the process of ...

Posted by aQ on Sat, 27 Jun 2020 07:43:54 +0200

Beauty of Mybatis source code: 2.12. Parse the 'environments' element to complete the multi environment configuration in' Mybatis'

Parsing environment elements to complete multi environment configuration in Mybatis After finishing the tedious process of configuring the Configuration object based on settings, it's time to parse the environments tab and configure the Mybatis multi environment. Mybatis supports multi Environment configuration by default. There is an Environme ...

Posted by salathe on Sat, 27 Jun 2020 06:24:08 +0200

Spring --- the fourth day of learning (transaction control of JDBC template + spring)

JdbcTemplate JdbcTemplate is an object provided in the spring framework, which functions as QueryRunning and is a simple encapsulation of the original Jdbc API object. The spring framework provides many template classes that are facing different database types. Operational relationship data: JdbcTempl ...

Posted by ramus on Fri, 26 Jun 2020 05:12:02 +0200

rodert single row learning redis advanced [silver 1]

redis silver I To make a digression, recently, the epidemic situation in the capital of China is very serious. We are all in the current of the times. This is not for individuals. I hope you can protect yourself and have fun every day. [toc] preface Statement: refer to the Internet, and leave a message if there is any dispute. Standing on the s ...

Posted by Stanley90 on Thu, 25 Jun 2020 11:19:57 +0200

java multithreaded Callable -- segment a large list and merge the results

Code reference http://bbs.csdn.net/topics/391070227?page=1     Here is the posted Code: public void dealListWithMutiThread(){ List<Object> list = new ArrayList<Object>(10000); int index = 0; ExecutorService ex = Executors.newFixedThreadPool(5); int dealSize = 2000; List&l ...

Posted by l9pt5 on Wed, 24 Jun 2020 07:20:34 +0200

java framework SSM learning -- Spring's transaction control

When it comes to Spring AOP, we are going to enhance transaction control by ourselves, and the Spring framework is ready for us to use these functions. Of course, don't think that SrpingAOP can only enhance the transaction function. AOP can be used to enhance any method you want to enhance. So how do ...

Posted by supernova on Sun, 21 Jun 2020 10:18:32 +0200

java SPI 03-ServiceLoader jdk Source Parsing

Series Catalog What is spi 01-spi?Getting Started spi 02-spi battle resolution slf4j package conflict problem spi 03-spi jdk for source code parsing spi 04-spi dubbo for source code resolution spi 05-dubbo adaptive extension adaptive expansion spi 06 - Implement SPI framework from scratch spi 07-Automatically generate SPI profile implementatio ...

Posted by frizzo on Thu, 18 Jun 2020 20:26:14 +0200

Summary of Spring IOC knowledge points

@Configuration configure spring and start the spring container @Configuration is used to define the configuration class, which is labeled on the class, which is equivalent to < beans > in the xml configuration file of spring. Its function is to configure the spring container (application context) Example description: Configuration class @ ...

Posted by lyealain on Sun, 14 Jun 2020 07:17:49 +0200

2020.05.28 Database Connection Pool C3P0 Druid JDBCTemplate

Today's Content 1. Database Connection Pool 2. Spring JDBC : JDBC Template Database Connection Pool 1. Concept: It is actually a container (collection) that holds database connections. When the system is initialized, the container is created and some connection objects are requested in the container. When the user accesses the database, ...

Posted by truck7758 on Thu, 28 May 2020 18:22:01 +0200