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

elasticsearch Chinese word segmentation plug-in IK analyze

Elastic search version 7.3 Install Chinese word segmentation plug-in The corresponding version of plug-in should be the same as that of elastic search. Download address of plug-in versions https://github.com/medcl/elasticsearch-analysis-ik/releases Install using the elasticsearch native script ./bin/elasticsearch-plugin install https ...

Posted on Thu, 17 Oct 2019 02:05:15 -0400 by Ryaan

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

C + + construction and parsing JSON

JSON is a lightweight data interaction format, easy for people to read and write, but also easy for machine analysis and generation, and effectively improve the efficiency of network transmission. It is often used in practical projects. Compared with xml, JSON has many advantages, such as asking duniang, a lot of advantages. Third party Library ...

Posted on Wed, 16 Oct 2019 10:41:39 -0400 by townclown

xml file flow of Spring + mybats based on simple project

xml file flow of Spring + mybats based on simple project 1.Mybaties+Spring It can integrate mybats into spring seamlessly. With this class library, spring can be loaded into the factory class and session class, and allow mybats to participate in spring transaction management. 1.1 location of projec ...

Posted on Tue, 15 Oct 2019 14:45:34 -0400 by dennisflash

maven? Upload to and download from private server

Since the company didn't have maven, it wanted to use it again, so it built a nexus of its own. 1. Upload the local jar file to maven You need to add this in setting.xml in maven of the native (client windows):       <server> <id>releases</id> <username>admin</username> <p ...

Posted on Tue, 15 Oct 2019 10:36:38 -0400 by miro_igov

23 design patterns of Java, detailed explanation

I. overview Design pattern is the solution to the problem. Learning from the existing design pattern can achieve experience reuse. With design pattern vocabulary, we can discuss with less vocabulary when communicating, and we don't need to understand the underlying details. II. Creation type 1. Singleton Intent Make sure that a class h ...

Posted on Tue, 15 Oct 2019 09:01:26 -0400 by ziegel

Spring IOC - IOC container initialization source code resolution

Preface The main content of this chapter is composed of the following parts. Container Initialization Entry in Spring Take the classic ClassPathXmlApplicationContext as an example to explain the container initialization process of Spring IoC In the process of learning source code, I want to emphasize two points: We must learn to grasp the k ...

Posted on Tue, 15 Oct 2019 07:11:50 -0400 by fncuis

Spring Cloud Series - Implementing Declarative Service Calls with Feign

Last article Hand-held Band You Use Ribbon to Realize Load Balancing on the Client This paper introduces the process of load balancing through Ribbon service invocation, in which the required parameters need to be spliced in the request URL, but too many parameters will lead to the inefficiency of splicing strings. This paper will introduce ...

Posted on Mon, 14 Oct 2019 22:58:49 -0400 by Niruth

Android implements apk plug-in skin change

Skin change ideas: 1. When will you change your skin? Skin change before xml loading, if xml loading after skin change, users will see the color before skin change, user experience is not good. 2. What is skin? Skin is apk, a resource bundle that contains colors, pictures, etc. 3. What kind of controls should be skinned? Controls that con ...

Posted on Mon, 14 Oct 2019 21:54:41 -0400 by tobeyt23