Kill feign and release spring cloud square components

What is Spring Cloud Square When talking about Spring Cloud ecology, you must be familiar with Feign. As shown in the figure below, Feign can hide the Rest requests of the underlying (okhttp, httpclient) and pretend to be similar to the Controller of spring MVC. You don't have to splice URLs, splice parameters and other operations by yourself. ...

Added by mikewooten on Fri, 04 Mar 2022 05:22:52 +0200

Android Retrofit source code analysis

Retrofit usage Retrofit request annotation Serial numbernameexplain1GETget request2POSTpost request3PUTput request4DELETEdelete request5PATCHpatch request, which is a supplement to put request and is used to update local resources6HEADhead request7OPTIONSoption request8HTTPThe general annotation can replace all the above annotations. It has t ...

Added by taiger on Fri, 11 Feb 2022 10:51:24 +0200

Free at home?Look at EventBus parsing and write EventBus with me

Preface Originally notified to resume work this Monday, it seemed that things were not simple, and it was postponed to next week's 1, but I still had to work from home for some time. Yesterday, some fans asked me why I didn't change my mind. Yesterday, I went to the company in batches for an afternoon meeting. All the people in batches had mas ...

Added by tipjones on Wed, 19 Feb 2020 04:28:06 +0200

Retrofit: basic use of 2.2.0

retrofit:2.2.0 framework has powerful functions and excellent encapsulation in network loading. Today we will learn about its basic usage 1. Import dependency: Here, we also import the excellent framework of gson implementation 'com.squareup.retrofit2:retrofit:2.2.0' implementation 'com.squareup.retrofit2:conve ...

Added by totof06 on Mon, 06 Jan 2020 06:05:24 +0200

Android MVVM upgrade DataBinding+Retrofit+RxJava+ViewModel+LiveData

This article mainly uses the generic optimization project structure to explain the key modifications. If you don't understand the project structure, please see my last two Blogs: Android MVVM improved DataBinding+Retrofit+RxJava+ViewModel+LiveData (2) Android MVVM Basic Edition DataBinding+Retrofit+RxJava (1) I. modify BaseA ...

Added by ramrod737 on Fri, 22 Nov 2019 19:58:57 +0200

Android Network Request 4--Parsing Retrofit Source Code

Articles Catalogue 1. Introduction to Retrofit 2. Retrofit usage (asynchronous) 2.1 Adding Dependencies 2.2 Adding Network Permissions 2.3 Create a class for receiving server to return data 2.4 Create an interface for describing network requests 2.5 Create Retrofit instances 2.6 Creating an Example ...

Added by Alanmoss on Tue, 06 Aug 2019 12:53:25 +0300

Android Encapsulates Rxjava2+Retrofit Perfectly

I learned the basic usage of Rxjava and Retrofit last year, but I haven't used them in actual projects.Starting a new project this year, we decisively introduced RxJava and Retrofit into the new project.This article describes the author's encapsulation of Retrofit in the project.Let's first see how Retrofit works after encapsulation. RetrofitH ...

Added by celebx on Tue, 06 Aug 2019 04:13:25 +0300

RxJava (Responsive Function Programming) First Experience

Responsive Function Programming_RxJava & RxAndroid Home page: https://github.com/ReactiveX/RxJava Chinese material: https://github.com/lzyzsd/Awesome-RxJava https://www.zhihu.com/question/35511144 1. Purpose: Asynchronous operation You can still keep the logic of your code concise in cases where the logic of you ...

Added by ekalath on Thu, 11 Jul 2019 19:33:38 +0300

RxJava 1.x from introduction to abandonment to RxJava 2.x (2)

Preface RxJava 1.x from entry to abandonment to RxJava 2.x (1) This article explains the simplest introduction, and in this section we will learn about RxJava thread scheduling together. text In the beginning of the last article, RxJava was used to handle asynchronous tasks. But by default, subscribe() is invoked in which thread we produce ...

Added by RickyF on Sat, 06 Jul 2019 23:36:13 +0300

Retrofit 2.0 Source Code Analysis

Retrofit 2.0 describes an HTTP request in the form of annotations, abstracts the HTTP request into a Java interface, and then uses Java dynamic proxy to "translate" the annotation of this excuse into an HTTP request, and then executes the HTTP request. Examples are given to illustrate: Request an api: https://api.github.com/repos/{o ...

Added by harkonenn on Sun, 30 Jun 2019 22:31:49 +0300