Package output results

catalogue After the execution of SQL statements in MyBatis, the processing of results     1. resultType result type refers to the java object that the data is converted to after the sql statement is executed. The java type is arbitrary     2. Alias the resultType of the returned result     3. Save q ...

Added by paullb on Fri, 11 Feb 2022 07:45:04 +0200

JAVA notes -- Fundamentals of programming (Part 4)

catalogue 1, Methods and arrays 1. Method i. Definition of method ii. Format of method iii. parameters iv. return value v. Method overload method 2. Array i. Definition of array ii. Define array iii. traversal of array iv. array precautions v. Examples 3. Algorithm i. Bubble sorting algorithm ii. Select Sorting Algorithm iii. d ...

Added by luketheduck on Fri, 11 Feb 2022 07:17:58 +0200

Implementation of Raft protocol for learning from sentinel Leader election

Learning from sentinel Leader election and implementation of Raft protocol (Part 2) In the last article, I introduced you to the basic process of Raft protocol and the basic process of sentinel instance work. The Sentinels perform periodic execution through the serverCron function, and then call the sentinelTimer function in serverCron to real ...

Added by Magwheel on Fri, 11 Feb 2022 07:04:52 +0200

JAVA notes -- object oriented (Part 2)

catalogue 1, One to one relationship of objects 2, static keyword modifies properties and methods 1. Use the static keyword to decorate an attribute 2. Use the static keyword to decorate a method 3, Memory structure diagram and main method and code block 1. Structure diagram of loading class file into memory 2. main method 3. Code block ...

Added by anujgarg on Fri, 11 Feb 2022 06:50:15 +0200

Java calls wechat payment

Introduction: in the development of a project, my business module involves WeChat scan code payment and Alipay scan code payment. After consulting the existing documents, I found that most articles still stay in V2 payment, and some articles introduce V3 payment, but it can't go through. So I read the official documents and formed this concludi ...

Added by ankhmor on Fri, 11 Feb 2022 05:21:21 +0200

Java Agent Probe Learning Notes

1. Preface When we encounter online problems and need to add a log to help locate them, we usually need to change the code to publish online in order to output the log, which is more cumbersome. Think: Can you change the code on the server to make it work in real time? The answer is yes! Starting with java5, a new Java has been added to jdk. ...

Added by chitta_pk on Fri, 11 Feb 2022 04:43:39 +0200

SpringBoot notes: summary of Log configuration and performance comparison

1. What is the role of Log? With the increase of Internet applications, the business is becoming more and more complex, and the demand for recording the operation of the business is also growing. The log framework came into being. The purposes of the log framework are roughly as follows. 1.1 problem tracking Through the log, we can trace ...

Added by englishtom on Fri, 11 Feb 2022 04:36:07 +0200

Mybatisplus builds multi tenant mode (shared library table, distinguishing tenants by tenant id field)

preface In recent work, I have encountered application scenarios of multi tenant mode, for which I have consulted a lot of materials. After analyzing the feasibility, the shared library table is selected, which is realized by distinguishing tenants according to the tenant id field. This record is convenient for future reference 1. Before ...

Added by gmann001 on Fri, 11 Feb 2022 04:30:15 +0200

Sentinel study notes

1, Installation download Sentinel download addressinstall java -jar sentinel-dashboard-1.7.0.jar 3. Visit localhost:8080 2, Disposition 1. Construction project Introducing maven dependency <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-alibaba-nacos-discovery< ...

Added by skattabrain on Fri, 11 Feb 2022 03:57:45 +0200

Interviewer: tell me about Spring loading configuration

Interviewer: tell me about Spring loading configuration Scene review Happy new year, everyone. I'm Xiao Zhang. Today is the first day of resumption of work. When I return to my bedroom, Xiao Ye is depressed again. There are the following scenes. Interviewer: Hello, Xiaoye. I see that my resume says that I am proficient in Spring. Then I want ...

Added by fqservers on Fri, 11 Feb 2022 02:39:41 +0200