Start writing the spring ioc framework from scratch and learn more about spring source code

IoC Ioc Is a simplified implementation version of the spring ioc core functionality for easy learning and understanding of principles. Purpose of Creation Spring has been used for a long time, very frequently for spring, and in fact has never been quiet about learning the source code. However, one problem with the spring source is that it is t ...

Posted by Orpheus13 on Mon, 02 Dec 2019 16:07:13 -0800

Android learning case - calculator

The last article talked about the six basic layouts of android: https://blog.csdn.net/qq_40205116/article/details/88418781 This article uses layout to make an android small project (calculator). The effect is as follows (those who wanted to insert video, but found that they couldn't insert video, could only insert pictures. He ...

Posted by russia5 on Mon, 02 Dec 2019 14:32:31 -0800

[Jmeter test] how to use bean shell assertion to judge the corresponding result of Json returned by the request

Script structure​In the above figure, queryMaterialApiDTOListByPkIds is the request that returns the response result in Json format, and then add the bean shell assertion to determine in detail whether the value in the Json result is correct. The corresponding results of Json scheme 1 { 2 "code": 0, 3 "msg": "success", 4 ...

Posted by deadimp on Mon, 02 Dec 2019 11:51:37 -0800

Decomposing prime factor in java

Content: Every non prime number (sum) can be written in the form of multiplication of several prime numbers (also known as prime numbers), which are called the prime factors of this sum. For example, 6 can be decomposed into 2x3, and 24 can be decomposed into 2x2x3. Now, your program reads an integer in the range of [2100000], and then outputs ...

Posted by Awesome Trinity on Mon, 02 Dec 2019 10:42:40 -0800

RPC based on TCP protocol

Preface: Environmental Science: windown 10 Eclipse JDK 1.8 Concept of RPC: RPC is a remote procedure call and the basis of distributed web site. Experiment SayHelloService.java interface class for specification SayHelloServiceImpl.java is the implementation class of SayHelloService Provider.java is the service providing class C ...

Posted by rg_22uk on Mon, 02 Dec 2019 09:34:18 -0800

Using IO stream to write files

Preface When it is necessary to operate on files, it is inevitable to use IO flow; for example, some contents in the response results of some requests need to be stored in the business. When the file to be processed is too large, if you close the file stream frequently, it will cause a lot of overhead. When do you close it? It often causes grea ...

Posted by SkyRanger on Mon, 02 Dec 2019 09:16:12 -0800

The usage of apply,call,bind

apply() Function.prototype.apply() will call a method with arguments in the form of this and an array.m fun.apply(thisArg,[argsArray]) Whenever you add a method to a new object, sometimes you have to override a method for it. If you use apply, you only need to write the method once, and then inherit it in the new object, which is very convenien ...

Posted by jaret on Mon, 02 Dec 2019 08:58:45 -0800

js implementation of red black tree

Summary The importance of trees in the front-end is self-evident. It can be seen everywhere. vdom, dom tree, render tree sometimes receive recursive tree structure data in front and back-end interaction. It should be noted that although set and map data structures appear in es6, their implementation is different from that in other languages (su ...

Posted by 051119 on Mon, 02 Dec 2019 08:18:40 -0800

Java Concurrent Programming: Thread Life Cycle

Preface: In the previous article, we learned the differences between processes and threads, and the advantages and disadvantages of using multithreading. This article focuses on how to create a thread in Java and the lifecycle of a thread. Interview Questions Q: How are threads implemented? What is the difference between Q:start() and run()?Q: ...

Posted by AshleyByrom on Mon, 02 Dec 2019 07:34:34 -0800

On the initialization order of members in java classes

What is the initialization order of the members after the class is created? Don't think about inheritance first package com; public class DemoOne { /** * On the initialization order of classes */ //Regardless of inheritance structure private static int a; private String str="I'm assigned a value"; { Syst ...

Posted by micklerlop on Mon, 02 Dec 2019 06:53:33 -0800