Spring Cloud Bus custom event stepping

This paper is based on Spring Cloud Greenwich.SR3, Spring Boot 2.1.10.RELEASE By chance, I found that Spring Cloud also has this component. By combining with Message Oriented Middleware (RabbitMQ or Kafka), the published Spring events can be passed to other JVM projects. It feels very good, so I wrote a demo to try. The code can Reference here ...

Posted by psychotomus on Fri, 15 Nov 2019 11:52:20 +0100

[Learn Data Structure 01 from Today] Arrays

When interviewing, you often ask the difference between an array and a list of chains. Many people answer, "A list of chains is suitable for insertion and deletion, with a time complexity of O(1); an array is suitable for searching, and a time complexity of O(1)."In fact, this statement is inaccurate.Arrays are suitable for lookup ope ...

Posted by jpratt on Fri, 15 Nov 2019 03:43:57 +0100

Automatic test based on web interface (based on HttpRunner+Fiddler)

1. Install Fiddler, please refer to http://together-learn.com/post/263 2. Install HttpRunner, the test I did in windows, precondition: install python and pip pip install httprunner 3. Record interface request through Fiddler 4. Export request session. har format file 5. The har file is converted to the test case file required by HttpRu ...

Posted by ssppllaatt on Thu, 14 Nov 2019 15:08:14 +0100

java multi-threaded learning and use of detailed analysis.

Multithreaded learning. 1.2 thread creation and startup. The first way: inherit Thread. package com.chen; /** * @program: java Advanced related knowledge * @description: By inheriting Thread class to create multithreading, instance variables of Thread class cannot be shared among multiple threads. * @author: Mr.Chen * ...

Posted by thegman on Wed, 13 Nov 2019 18:37:26 +0100

Spring 5 source code analysis - register configuration class

Previous: Spring 5 source code analysis - container initialization The container has been prepared. In this article, you need to register your Java configuration class with beanDefinitionMaps, so that ConfigurationCLassPostProcessor can analyze the annotations on the Java configuration class, and check whether to execute the class conforming to ...

Posted by svgk01 on Tue, 12 Nov 2019 21:50:18 +0100

jmeter and Java selenium automation

Jmeter can complete the UI automation test through WebDriver, and can also test the browser side pressure on the system. The following jiar package is required Basic configuration 1: Download JMeterPlugins-WebDriver-1.3.1.zip, and after decompression, copy all jar files under the lib directory and JMeterPlugins-WebDriver.jar files under the l ...

Posted by millesm on Tue, 12 Nov 2019 18:45:24 +0100

Java data structure

Hashtable Dictionary (Dictionary) Properties 1.Hashtable Hash table provides a way to organize data based on user-defined key structure. In the hash table of the address list, the selection key can store and sort the data according to the zip code. The specific meaning of the hash table key depends entirely on the usage scenario ...

Posted by jason_kraft on Tue, 12 Nov 2019 16:28:42 +0100

socket programming 15: how to keep the server listening to the client's requests?

The previous program, no matter the server or the client, has a problem, that is, it exits immediately after processing a request, which is not of great practical significance. Can you always accept requests from clients like a Web server? Yes, just use the while loop. Modify the echo program so that the server can continuously ...

Posted by smacpettit on Mon, 11 Nov 2019 19:48:26 +0100

python3 Case Sharing -- piggy page

python3 case sharing - Piggy page: It is mainly divided into 10 parts: nose, head, ears, eyes, cheeks, mouth, body, arms, feet and tail. Finally, the main function of main() is called to run. See the specific code below. In order of priority, 1. Nose source code, named bizi.py # coding: utf-8 import turtle as t def draw_bizi(): t ...

Posted by GreenSmurf on Mon, 11 Nov 2019 15:25:39 +0100

New JDK1.8 Feature-Lambda Expression

Lambda expression Lambda expressions, also known as closures, are the most important new feature driving the release of Java 8. Lambda allows functions to be passed as parameters to a method. Using Lambda expressions can make your code more concise and compact. grammar The syntax format of the lambda expression is as follows: (parameters) -& ...

Posted by philweb on Mon, 11 Nov 2019 04:43:40 +0100