Retrofit custom Converter implements sending String and receiving JSON

Retrofit has provided users with six converters, as follows: Gson: com.squareup.retrofit2:converter-gson Jackson: com.squareup.retrofit2:converter-jackson Moshi: com.squareup.retrofit2:converter-moshi Protobuf: com.squareup.retrofit2:converter-protobuf Wire: com.squareup.retrofit2:con ...

Posted by Spear Chucka on Sat, 26 Oct 2019 12:05:05 -0700

Dynamic configuration of Spring Cloud Gateway Routing

Address of original English document: click here 8. Configure the route according to the configuration document The configuration of Spring Cloud Gateway is controlled by a series of "RouteDefinitionLocator" interfaces, which are as follows: public interface RouteDefinitionLocator { Flux<RouteDefinition> getRouteDefinitions(); ...

Posted by tommyrulez on Sat, 26 Oct 2019 10:40:07 -0700

Convert RestTemplate json to entity class

Convert RestTemplate json to entity class Sometimes we need to use RestTemplate to access other url resources in java server, but because it is a class in two servers (JVMs), how to transfer entity classes? Contract entity class This example returns the entity class with AgreementApproveForOA as the ...

Posted by domainbanshee on Sat, 26 Oct 2019 10:13:16 -0700

The scrape framework crawls the data of the big lotto

github project address: https://github.com/v587xpt/lottery_spider# Last time I did a data crawling of dichroic sphere, in fact, the crawling of the big Lotto is also very simple. You can use request to crawl, but in order to make better progress, the crawling of the big Lotto uses the scratch framework. The operation mechanism of the summary ...

Posted by Cerberus_26 on Sat, 26 Oct 2019 08:31:19 -0700

centos7 installs Docker and changes Alibaba source to download to solve the slow downloading problem of Docker image

I. installing Docker Update yum package to the latest.[root@localhost ~]# yum update Install the required software package. Yum util provides the function of Yum config manager. The other two are dependent on the device mapper driver. yum install -y yum-utils device-mapper-persistent-data lvm2 Se ...

Posted by andrew6607 on Sat, 26 Oct 2019 07:05:27 -0700

Notes on node.js+mongodb+express to realize simple version of blog management system

I. Case initialization Related folders public: static resources model: database related files Route: route views: template files Build project description file npm init -y Download third party module npm i express mongoose art-template express-art-template Create server const express = require ...

Posted by richo89 on Sat, 26 Oct 2019 00:26:17 -0700

es6 template string contains the select drop-down box for dynamic data rendering

Here is my ajax request data loop splicing   function getconfigureData(){              $.ajax({                  type: "GET",                  url: ctx + "leaderApproval/automaticApproval",                  dataType: 'json',                  success: function(res) {                     if(re ...

Posted by jwbworks on Fri, 25 Oct 2019 07:59:32 -0700

WebApi learning a preliminary understanding and creation project

WebAPI I. definition of WebAPI II. WebAPI creation 3. WebAPI routing control I. definition of WebAPI A framework for providing data to the front end Restful data supply mode Post submission data (added) Get data (check) Put modification data (modification) Delete delete data Common for the fir ...

Posted by cyberplasma on Fri, 25 Oct 2019 03:31:06 -0700

Four basic methods of JavaScript array & array traversal

Preface The four basic methods of array are as follows:The way to traverse an array is as follows: Four basic methods of array (addition and deletion of array elements) push() push(): insert one or more elements into the last face of the array, and the returned result is the new length of the array. Syntax: New length of array = array. Push (el ...

Posted by geroid on Fri, 25 Oct 2019 02:26:53 -0700

Summary of problems in react+dva+antd background management project

* Preface After developing a project, I will summarize some problems encountered in the project. Also explore the causes of the problem. Without saying much, the summary of stepping on the pit begins again. *Use the custom verification in the form form form of antd <Form.Item label="User name">               {getFieldDecorator('username' ...

Posted by fimbria on Fri, 25 Oct 2019 01:27:24 -0700