The Simplest Spring Cloud Tutorial in History | Chapter 9: Spring Cloud Sleuth

This article focuses on the service tracking component zipkin, which Spring Cloud Sleuth integrates with Zipkin components. I. Brief Introduction Add sleuth to the classpath of a Spring Boot application (see below for Maven and Gradle examples), and you will see the correlation data being collected in logs, as long as you are logging requests. ...

Posted on Mon, 08 Jul 2019 11:54:57 -0700 by perrio

Android RxJava+Retrofit Network Anomalies and State Code Unified Processing

Android RxJava+Retrofit Network Abnormal Capture and Unified Processing of Status Code Preface Recently, RxJava+Retrofit has been used for development. In the project, there is a need to obtain and display the corresponding Message and StatusCode when requesting data exceptions from the network, such as: 1. Server Connection Error: Return ...

Posted on Sun, 07 Jul 2019 17:40:40 -0700 by p0pb0b

TreeMap Set Characteristic and Sorting Principle

TreeMap features (similar to TreeSet): 1. Unordered, not allowed to repeat (disordered refers to the order of elements is not consistent with the order of additions) 2.TreeMap collections sort keys by default, so keys must be one of natural and customized sorts 3. The underlying data structure is a binary tree Two sorts of usage (r ...

Posted on Sun, 07 Jul 2019 14:50:38 -0700 by asurfaceinbetween

URLConnection sends GET and POST requests

The URLConnection class is built into the java.net base package, which encapsulates the underlying implementation of network communication.The URLConnection class provides many ways to facilitate the implementation of network communication in the application layer. Basic steps: Create URLs and URLConnection objects Setting connection parameter ...

Posted on Sat, 06 Jul 2019 17:27:00 -0700 by jimdavidson

P3376 [Template] Network Maximum Flow

First of all, thank you.( http://blog.csdn.net/x_y_q_/article/details/51999466 ) Core Ideas http://blog.csdn.net/x_y_q_/article/details/51999466 First, FF algorithm, dfs to find an augmented path. The Simplest Template (Adjacency Matrix) #include<iostream> #include<cstdio> #include<cstring> #include<string> #include ...

Posted on Sat, 06 Jul 2019 14:09:20 -0700 by kjb

BaseActivity: Unified Writing of Common Logic

In the last article NetworkStateView At the end of the article, we can set up a unified NetworkStateView in BaseActivity to load multi-state of the interface. So let's talk about BaseActivity today. How to set up NetworkStateView in BaseActivity and some other functions of BaseActivity? We haven't seen NetworkStateView before. Once This article ...

Posted on Sat, 06 Jul 2019 13:50:11 -0700 by joon

5-day summary of basic learning

Summary: First day: android Introduction: 1.Environmental Construction jdk+ eclipse+android sdk 2,Introduction to Project Structure //Familiar with the purpose of each catalog. 3.Five Layouts LinearLayout + RelativeLayout //Control: EditText TextVeiw Button ImageVi ...

Posted on Sat, 06 Jul 2019 13:47:18 -0700 by caspert_ghost

HttpClient/HttpURLConnection + HttpDns Best Practices

On the Android side, if OkHttp serves as a network request framework, it can gracefully integrate HttpDns because it provides a custom DNS service interface. The related implementations can be referred to: HttpDns+OkHttp Best Practices. If you use HttpClient or HttpURLConnection to initiate network requests, although you cannot directly cust ...

Posted on Sat, 06 Jul 2019 12:15:47 -0700 by andrew_U

Update prompt for Android build project - pop-up update prompt box

Get version number# id: Hump Naming: Control Type Location of Control Logical Content Represented by Control /** * Get the version number of the current application * @return */ private String getVersionName(){ //Package manager, get all the information in the manifest file PackageManager pm = getPackageManager(); ...

Posted on Fri, 05 Jul 2019 15:40:30 -0700 by Gighalen

Talking about Android MVP Architecture

Foreword: This article is about the personal opinions of bloggers. If there are mistakes or inappropriateness, bloggers are welcome to correct them. Links to the original text,demo link Introduction to MVP Architecture Speaking of MVP architecture, I believe many friends have seen it, and there are many information on the Internet. Bloggers ...

Posted on Fri, 05 Jul 2019 14:28:35 -0700 by nickholas