Integrate JDBC learning notes

SpringBoot learning notes SpringBoot: integrating JDBC preface This article is to follow the crazy teacher to learn the learning notes of springBoot, which is used to review and consolidate and facilitate review and sorting. 1, Integrate JDBC The bottom layer of Spring Boot uses the way of Spring Data to uniformly process various ...

Posted by zenabi on Thu, 03 Feb 2022 14:56:32 +0100

Implementation principle of springboot @Cacheable

1. Use of springboot cache a.pom introduce jar spring-boot-starter-cache b.Add annotation to startup class@EnableCaching c.Add annotations to the methods that need to be cached @Cacheable(cacheNames = "com:xxx",key = "''+#id") Figure 1 2. Implementation principle of cacheable What is the implementation principle? The first reaction ...

Posted by plasmagames on Thu, 03 Feb 2022 12:24:48 +0100

[giant's shoulder] detailed explanation of Spring affairs

Introduction Many coder s use database transactions without understanding the principle of transactions or even the basic concepts. It is very easy to make mistakes and write some code that they can't control. Many articles on the Internet are either concepts, a little source code, or a little test verification, which are not enough to fully u ...

Posted by DarkEden on Thu, 03 Feb 2022 11:04:01 +0100

[Spring Cache] II. Notes and attributes related to Spring Cache operation

preface In this chapter, learn about the Spring defined annotation @ Cacheable @CachePut @CacheEvict @Caching @CacheConfig and related properties @Cacheable /** * Cacheable Indicates that the caching behavior is enabled. If it is on the annotation class, it means that all methods are cached * Cache keys are generated based on parameter ...

Posted by locell on Thu, 03 Feb 2022 10:03:39 +0100

03 -- framework summary SS+M(Spring) -- function test (Part 2)

Part I: 03---Spring function test (Part I) catalogue 1. loc write configuration file to develop spring config xml 2.loc annotation development 3. Simulate the underlying principle of spring IOC ---1. Create bean; Class, record the class name and the full path of the class ---2. Create MyIOC class ---- > to simulate your own IOC 1. Tel ...

Posted by gwolgamott on Thu, 03 Feb 2022 06:44:17 +0100

Bean assembly method

There are three assembly methods in Spring:Explicit configuration in xmlExplicit configuration in javaImplicit auto assembly beanExplicit configuration in xmlquote How spring IOC creates objectsConfiguring object properties in an xml fileExplicit configuration in javaquote Derivation of spring IOC theoryWhen actually calling the dao layer, you ...

Posted by neo0506 on Thu, 03 Feb 2022 05:54:20 +0100

Spring source code analysis - instantiation of simple benefit Bean

preface In the previous series of chapters, we analyzed the startup process of Spring IOC, including container creation, configuration loading, configuration parsing, Bean registration and other stages. Therefore, Bean registration is actually to encapsulate the relevant attributes and dependencies of a Bean into a beandefinition object, and t ...

Posted by fourthe on Thu, 03 Feb 2022 05:40:51 +0100

How is the transaction method of Spring transaction source code analysis intercepted by AOP proxy?

1. spring declarative transaction overview Transaction management is very important for enterprise applications. When an exception occurs, it can ensure the consistency of data. spring supports programmatic transaction management and declarative transaction management. First, let's take a look at the thing abstraction of the spring framew ...

Posted by gotry on Thu, 03 Feb 2022 03:24:44 +0100

Spring source code analysis - Bean instantiation - attribute injection

preface If you like my article, please give me a favorable comment. Yours must be the biggest driving force for me to insist on writing. Come on, brothers, give me some driving force In this chapter, we will discuss the attribute injection in the process of creating beans. During the startup of Spring IOC container, the defined beans will be ...

Posted by cpjok on Thu, 03 Feb 2022 03:11:04 +0100

Thoroughly analyze the JVM class loading mechanism from the JDK source code level

The whole process of class loading and runningpackage com.tuling.jvm; public class Math { public static final int initData = 666; public static User user = new User(); public int compute() { //A method corresponds to a stack frame memory area int a = 1; int b = 2; int c = (a + b) * 10; return c; ...

Posted by andysez on Wed, 02 Feb 2022 18:13:43 +0100