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

Development of editing function to find the feeling of writing code

Write in front I lost sleep again last night. I didn't sleep until 4:30. I also had two bad dreams. I woke up at 8:30. I feel so tired. I really want to get drunk. I can't. I'm afraid of drunk driving, ha ha ha. There are still many things to do this year. You must take action. Just try your best. The rest depends on the will of God. Task Disa ...

Posted by tyrol_gangster on Thu, 03 Feb 2022 12:30:20 +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

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

How to solve the Chinese garbled code transmitted by springboot parameters

How to solve the Chinese garbled code transmitted by springboot parameters preface This case comes from a business scenario of a business department. Their business scenario is that their department has developed a microservice context transparent component, and its transparent principle is also very simple. That is, the request parameters ar ...

Posted by bibby on Thu, 03 Feb 2022 01:41:35 +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

SpringBoot distributed system is easy to use

Simple understanding of SpringBoot distributed system Next, after understanding the basic concept of distributed system and setting up the environment, use a simple example to experience distributed services. 1. Environmental construction Create an empty new project and name it SpringBoot-09-DS. Create a provider server module of the SpringBoot ...

Posted by isam4m on Wed, 02 Feb 2022 13:26:42 +0100

Distributed transaction

1. TCC of distributed transaction solution 1.1 what is a TCC transaction TCC is the abbreviation of try, Confirm and Cancel. TCC requires each branch transaction to implement three operations: preprocess try, Confirm and Cancel. Try performs business check and resource reservation, Confirm performs business confirmation, and Cancel imp ...

Posted by Harsh on Wed, 02 Feb 2022 11:46:10 +0100

SpringBoot learning -- create a SpringBoot project through an empty project

@[TOC]SpringBoot learning (I) -- create a SpringBoot project through an empty project IDEA creating an introductory project I create an empty project, and then create multiple modules in it. In this way, multiple projects only open one window Creation method Mode 1 ① If you have opened a project in the IDEA, you need to enter the project cr ...

Posted by iamchris on Wed, 02 Feb 2022 09:41:38 +0100

On the failure of refresh configuration from the implementation principle of RefreshScope

preface In spring IOC, the well-known BeanScope includes singleton and prototype. The scope of the Bean affects the creation method of the Bean. For example, when creating a Bean with Scope=singleton, the IOC will save the instance in a Map to ensure that the Bean has only one instance in an IOC context. Spring cloud adds a scope of refresh ra ...

Posted by sajy2k on Wed, 02 Feb 2022 07:21:22 +0100