How can spring automatically assemble bean s?

The autowire parameter of the < bean > node in the spring configuration file can control how beans are automatically assembled Default - the default is the same as "no" no - does not auto assemble, requires < ref / > nodes or parameters byName - assemble by name byType - assemble by type Constructor - assemble ac ...

Posted by jagat21 on Fri, 03 Jan 2020 18:08:32 -0800

MySQL basic part: summary of system and custom function, detailed explanation of trigger use

1, System encapsulation function MySQL has many built-in functions, which can quickly solve some business requirements in development, including process control function, numerical function, string function, date time function, aggregation function, etc. The functions commonly used in these classifications are listed below. 1. Control flow f ...

Posted by netdynamix on Fri, 03 Jan 2020 12:52:53 -0800

Introduction to maximum flow of network flow (from common algorithm to dinic optimization)

Network flows, which are closely related to linear programming, are a kind of specific flow solution. The theory and application of network flow are developing. And what we are going to talk about today is a common problem in the network flow - the biggest flow problem. Maximum flow problem, a combinatorial optimization problem, is to discuss h ...

Posted by Backara_Drift on Fri, 03 Jan 2020 11:09:23 -0800

Design of tcp packet protocol class by python

1, Problem description In tcp programming, the most important problem to be solved is packet sticking. Therefore, we need to add the length of each packet in front of each packet to divide the conglutinated packets.   2, Design of package structure Package composition: package length + data field Packet length: store the l ...

Posted by scotchegg78 on Fri, 03 Jan 2020 11:00:51 -0800

Analysis of elastic job principle - JobSchedule

Job schedule completes a lot of quartz related content, and also registers the service information to zk, and completes the cache of related job information. In the whole task scheduling, the job schedule completes the elastic job backbone process. <a name="dI1yS"></a> JobSchedule When the elastic job is started, it needs to registe ...

Posted by EchoFool on Fri, 03 Jan 2020 09:56:55 -0800

saltstack for highly available keepalived building

In the following articles, I will refer to my blog for the construction of nginx based on saltstack The experimental topology and related file directories are as follows: Write the maintained installation script [root@server1 ~]# vim /srv/salt/keepalived/install.sls include: - pkgs.make # This includes the usual ...

Posted by crishna369 on Fri, 03 Jan 2020 08:39:43 -0800

Spring boot uses spring retry retry mechanism

When we call an interface, we may fail for network reasons and try again successfully. This is the retry mechanism.Be careful to use retries when they are not idempotent. tips: idempotency Idempotency is defined in HTTP/1.1 as requesting a resource once or more should have the same result for the resource itself (except for problems such as net ...

Posted by lew14 on Fri, 03 Jan 2020 07:30:07 -0800

How to solve the problem of nginx shock group

For nginx's swarm alarm problem, we first need to understand that during the startup of nginx, the master process will listen to each port specified in the configuration file, and then the master process will call the fork() method to create each subprocess. According to the working principle of the process, the subprocess will inherit all the ...

Posted by jandrews3 on Fri, 03 Jan 2020 02:43:55 -0800

Arthas practice - how to quickly troubleshoot online problems

I will not repeat the installation of Arthas here, but I will use it directly Official website address: https://alibaba.github.io/arthas/ 1. View thread information thread View the current thread information and the thread stack Parameter description Parameter name Parameter description id Thread id [n:] ...

Posted by joel danny on Fri, 03 Jan 2020 02:05:41 -0800

A simple way to use WebView in android learning notes

Android learning notes Refer to the second edition of the first line of code and the second edition of android programming authority guide In the development process, we want our App to have the function of visiting web pages, but we don't want to use a third-party browser. So here we introduce the WebView technology, which ...

Posted by brob on Fri, 03 Jan 2020 01:16:54 -0800