android UiAutomator Custom Quick Debugging Class

In the process of using UiAutomator, I have been testing with quick debugging classes. I find that many of them need to make changes according to different needs. Today, I spent a little time in general revision, more flexible, and wrote a lot of Chinese annotations. Share it for your reference. package student; import java.io.BufferedReader; ...

Added by kanchan on Sun, 06 Oct 2019 22:53:46 +0300

C Language Implementing Three-chess Game

In order to realize the game of chess, we must first understand the rules of chess, so as to facilitate our programming and understanding. The rules are as follows: On the Nine-palace chessboard, as long as the three pieces go in one line (horizontal, vertical, diagonal), the other side will lose. First ...

Added by johncox on Sun, 06 Oct 2019 09:41:18 +0300

Talk about nacos DisroMapper

order This article mainly studies nacos'ListroMapper. ServerChangeListener nacos-1.1.3/naming/src/main/java/com/alibaba/nacos/naming/cluster/servers/ServerChangeListener.java public interface ServerChangeListener { /** * If member list changed, this method is invoked. * * @param servers servers after change */ void ...

Added by jacinthe on Sun, 06 Oct 2019 00:39:15 +0300

Mybatis in-depth and shallow learning three (dynamic sql sentence analysis of Mybatis)

The basic syntax for splicing Mybatis dynamic sql depends on < if > tags and < Where > tags. The < foreach > tag is used in traversal Demand one Query object is wrapped by wrapping class, and sql statement is stitched dynamically according to the attribute of object. Packaging cla ...

Added by lisa3711 on Sat, 05 Oct 2019 17:46:58 +0300

Talk about nacos'DestroFilter

order This paper mainly studies the ListroFilter of nacos. CanDistro nacos-1.1.3/naming/src/main/java/com/alibaba/nacos/naming/web/CanDistro.java @Retention(RetentionPolicy.RUNTIME) public @interface CanDistro { } CanDistro is used to identify a method that needs to determine whether it should be redirected based on distro DistroFilter nacos ...

Added by psd99 on Sat, 05 Oct 2019 14:12:38 +0300

Custom Display Lock

Background: ** In multithreaded programming, in order to avoid inconsistency of shared data, the operation of shared data must be locked. In java, synchronized keyword can be used to achieve exclusive lock, but there are two major drawbacks in using this keyword: 1. The blocking time of threads cannot b ...

Added by zizzy80 on Sat, 05 Oct 2019 10:01:37 +0300

Spring source code Spring Aware automatic assembly principle

Spring Aware automatic assembly has two implementations: Execute the invokeAwareMethods method in the initialize Bean method for initializing beans It is implemented through the post processor ApplicationContextAwareProcessor, which implements the BeanPostProcessor interface. invokeAwareMethods When we initialize beans, in order to ensure tha ...

Added by karenn1 on Sat, 05 Oct 2019 04:03:42 +0300

Monotone stack problem solving

Monotone stack problem solving 1. Monotone stack structure Niu Ke link Method: Monotone stack algorithm Maintaining a monotonic incremental stack, you can find elements smaller than the current element Convention: Current element cur, top of stack, tempTop of stack Traversing array If the current ...

Added by Aptana on Thu, 03 Oct 2019 00:47:21 +0300

Spring security Notes 2/4: Custom User Information

Customize user information Spring Security's user information is implemented through the User Details Service interface, and only one of them needs to be implemented. loadUserByUsername(String username) Method, user information can be customized Implementation steps 1. Copy the source code of the previous example Rename package name case 1 to ...

Added by msmith29063 on Wed, 02 Oct 2019 22:03:52 +0300

springboot family bucket, integrated shiro, rabbitmq, redis, mybatis, druid, swagger

Build a SpringBook template, which can be downloaded as a service background template for single application. Project address: https://gitee.com/devilscode/springboot_template Project Integration Framework springboot as the basic framework shiro privilege management rabbitmq message middleware redis cache mybatis persistence layer framework d ...

Added by bholaday on Wed, 02 Oct 2019 18:13:45 +0300