koa-body, nodejs koa middleware file upload, build file service
Preface
koa as the solution of node service, koa-body As the middleware of koa, it is friendly to upload files and POST JSON, set the size of json and upload files. koa-static provides service static file access
demand
Upload picture interface, save the file directory "Year/Month/SDK_20190904153509.png" according to the current date, ...
Posted by Cronje on Tue, 01 Oct 2019 03:41:21 +0200
Auto-refresh client configuration via bus mechanism (Consul,Spring Cloud Config,Spring Cloud Bus)
Auto-refresh client configuration via bus mechanism
Schema Diagram
With the webhook notification function of the Git service, after each configuration update, the Git server invokes the/actuator/bus-refresh interface of the Configuration Center by POST. The bus service of the Configuration Center broadcasts this event to all clients joining th ...
Posted by PerfecTiion on Mon, 30 Sep 2019 04:45:41 +0200
Spring Boot 2.x Basic Tutorial: Building RESTful API s and Unit Testing
First, review and elaborate on quick get start The @Controller, @RestController, @RequestMapping annotations used in the.If you are unfamiliar with Spring MVC and have not tried the Quick Start case, it is recommended that you take a look first quick get start Content.
@Controller: Decorates the class to create an object that handles http req ...
Posted by Crowly on Sat, 28 Sep 2019 18:05:59 +0200
Completion Service Source Parsing
The main function of Completion Service is to obtain the completed asynchronous tasks one by one according to the order of completion of the asynchronous tasks. The main implementation is in Executor Completion Service.
Class diagram
Core internal classes
private class QueueingFuture extends FutureTask<Void> {
QueueingFuture(RunnableFut ...
Posted by Ashoar on Wed, 25 Sep 2019 07:04:36 +0200
elementUI upload checks the width and height of the picture
Preface
In the process of using vue+elementUI, I encountered a problem: upload checks the width and height of the picture
At first, I went directly to Baidu google and found that there was no such problem. This should be a very common requirement. Why didn't element ation come true? Maybe it's very simple. There are no such problems on the in ...
Posted by pestilence669 on Tue, 24 Sep 2019 14:12:08 +0200
58 Mine Sweeping System APP Source++ Git Use and Basic Commands
Repository
There is a hidden directory in the workspace. Git, 58 Red Pack Mine Sweeping System developed by Wu Yan: I56 2227 micro 7887, this is not a workspace, but Git version library.Git's version library contains a lot of things, the most important of which is the temporary area called stage (or index), the first branch master that Git crea ...
Posted by terandle on Mon, 23 Sep 2019 10:09:02 +0200
Developing the Right Posture for Function Computing - Converting Word to PDF with LibreOffice
Preface
Firstly, several important concepts emerged in this paper are introduced.
Function Compute: Function Compute is an event-driven service. Through function computing, users do not need to manage the operation of servers, etc. They only need to write code and upload it. Function computing prepares computing resources and runs user cod ...
Posted by georgen on Wed, 18 Sep 2019 08:57:49 +0200
30 seconds of code - Array learning
Original address: https://github.com/30-seconds...
deepFlatten
Recurses the specified array to a one-dimensional array.
Use the Array.prototype.concat() method to stitch the arrays, use the extension operator.. reduce the nesting of the arrays, and recursively loop through each array.
const deepFlatten = arr => [].concat(...arr.map(v => ( ...
Posted by midi_mick on Wed, 18 Sep 2019 04:39:51 +0200
LitePal: An Open Source android Database Framework
When writing a project, we encounter the operation of database. The creation and use of database provided by Android feels a little complicated. We wonder if there is a better wheel-framework or tool class to use. We find litepal, an object-oriented ...
Posted by pandhandp on Mon, 16 Sep 2019 08:15:57 +0200
python implements the underlying data structure
The code involved in this article has been placed in my github--> link
python implements basic data structures (1)python implements the underlying data structure (2)
python implements basic data structures (3)
python syntax is more concise, just ...
Posted by BRUUUCE on Mon, 16 Sep 2019 05:03:58 +0200