23 design patterns of Java, detailed explanation

1. Adapter Intent Convert one class interface to another user's interface.       Class Diagram       Implementation Duck and Turkey have different calls. Duck's call calls the quack() method, while Turkey calls the gobble() method. It is required that Turkey's gobble() method be adapted to Duck's quack() method to make Turkey ...

Posted on Thu, 17 Oct 2019 02:55:37 -0400 by QSDragon

At the scene of a large-scale car accident, e-commerce is oversold. Who will carry this pot?

background Xiaoming works in an online shopping mall. Recently, he has a new demand. He needs to develop a commodity seckill module. The demand is urgent. The boss requires that it be online as soon as possible. programme Xiaoming did this at the beginning. He used the database lock directly to control, obtain and lock the quantity of seckill ...

Posted on Thu, 17 Oct 2019 01:53:24 -0400 by stevenszabo

[source code analysis] I don't know the details of automatic configuration, let alone you can spring boot.

Compared with spring, one of the most important characteristics of spring boot is automatic configuration, which makes the Convention larger than the configuration idea successfully implemented. XXX spring boot starter a series of bootstrappers can be used out of the box, or only need a few configurations (for beginners) because the default aut ...

Posted on Wed, 16 Oct 2019 21:48:54 -0400 by rotwyla98

Android 9.0 MTK flat panel horizontal screen scheme modification (forced app horizontal screen + startup logo / animation + shutdown charging horizontal screen + RecoveryUI horizontal screen)

If the article is long, it is suggested to collect it before reading it. Disassembly steps 1. The app forces horizontal display, ignoring the Android: screenorientation = "portait" attribute 2. Screen touch coordinate is changed to horizontal screen. 3. Power on animation screen 4. Startup logo, shutdown and charging animation screen ...

Posted on Wed, 16 Oct 2019 20:42:33 -0400 by russellpehrson

Spring IoC - dependency injection

Preface In the previous article, we introduced the container initialization process of Spring IoC- IoC container initialization In this article, we continue to introduce the process and source code interpretation of Spring IoC dependency injection. As before, I'd like to sort out the procedures for you so that you can have a general context in ...

Posted on Wed, 16 Oct 2019 19:30:38 -0400 by EPCtech

Springboot development, day 2

SpringBoot learning, the next day Directory: 1. Springboot integrates Listener 2. Springboot accesses static resources 3. Exception handling 4. Hot deployment I. SpringBoot integrated Listener Two ways to register components 1. Complete component registration through annotation scanning FirstListener package com.lee.listener; import javax.serv ...

Posted on Wed, 16 Oct 2019 18:23:22 -0400 by mediamind

EurekaClient automatic assembly and startup process analysis

stay Last article In, we briefly introduced EurekaServer automatic assembly and startup process analysis. In this article, we will continue to study the relevant codes of EurekaClient. According to the old rules, first look at the spring.factories file, which introduces a configuration class EurekaDiscoveryClientConfigServiceBootstrapConfigur ...

Posted on Wed, 16 Oct 2019 16:31:18 -0400 by garg_vivek

RabbitMQ -- java client access

RabbitMQ is a lightweight message broker middleware, which supports a variety of message communication protocols and the distributed department. At the same time, it supports multiple operating systems and has the characteristics of flexibility and high availability.   RabbitMQ supports multiple ...

Posted on Wed, 16 Oct 2019 15:49:58 -0400 by spikypunker

pandas grouping and aggregation

Pandas grouping and aggregation Group by Data sets are grouped and then statistically analyzed SQL can filter and aggregate data. pandas can use groupby for more complex grouping operations Group operation process: split - > apply - > combine Split: basis for grouping 2. Application: calculation rules for each group 3. Merge: merge ...

Posted on Wed, 16 Oct 2019 14:49:44 -0400 by hoogeebear

DockerMaven plug-in, which publishes the configuration center to the server

There are two ways to deploy microservices: (1) manual deployment: first, generate jar package (or war package) based on source package, upload jar package (or war package) to virtual machine and copy to JDK container. (2) automatic deployment through Maven plug-in. For a large number of microservices, ...

Posted on Wed, 16 Oct 2019 14:16:41 -0400 by blueovaltv