The parameter binding of basic application of springboot2 can correctly understand the scope of content type

Content type understanding http protocol is an application layer protocol based on tcp/ip protocol, which consists of three parts: status line, header information and message body. The corresponding http request is: request line, request header, request body. The content type is in the request header. Generally, the server will obtain how the ...

Posted by tisource on Wed, 06 Nov 2019 09:29:31 -0800

koa router multi file introduction

background There are more and more koa router routes. The router under api needs to be introduced in the following way. How can all files under api be introduced conveniently and quicklyThis time, it is recorded that if the koa router one-time loop is introduced const book = require('./app/api/v1/book') const classic = require('./app/api/v1/cla ...

Posted by cjosephson on Wed, 06 Nov 2019 09:23:42 -0800

iOS uses version number comparison between local and App Store to realize version update

The comparison version number is generally used to realize the function of version update. The pop-up window prompts the user to update or directly jump to the App Store. Get version information of APP in App Store Here we use iTunes's lookup interface, provided that you have published it to the App Store. Get the id of the app in the ...

Posted by Shazbot! on Wed, 06 Nov 2019 03:10:04 -0800

ApiBoot Logging uses RestTemplate to transparently transmit link information

In the last article[ ApiBoot Logging uses spring cloud openfeign to transmit link information ]In this section, we explained in detail how to integrate spring cloud with ApiBoot Logging to transmit link information through Openfeign, including traceId (link number), parentSpanId (superior unit number) and other information. ApiBoot Logging can ...

Posted by Tracer on Wed, 06 Nov 2019 02:53:09 -0800

Simple use of H5 Handlebars

In H5, it's Html. We don't have an el tag here. So we can only use templates. The benefits are described above <!-- more --> Scan code to pay attention to public numbers, and update work regularly. In web development, it is common for js to parse json. It's very complicated. Handlebars uses a template. As long as you define a template a ...

Posted by phpdoodler on Tue, 05 Nov 2019 18:04:49 -0800

Using jQuery to implement Ajax

Using jQuery to implement Ajax JQuery encapsulates Ajax operations. In jQuery, the lowest level method is $. ajax(), the second level is load(),$.get(),$.post(), and the third level is $. getScript() and $. getJSON()   load() method: -- the load() method is the most simple and commonly used Ajax method in jQuery. It can load remote HTML cod ...

Posted by s2j1j1b0 on Tue, 05 Nov 2019 11:40:43 -0800

C. how to generate token s and cookie s based on user information

In projects with separate front and back ends, the process of requesting interfaces is generally as follows: User login with username and password The information is correct, and the interface returns token To request the interface that needs to be logged in for verification, put the token into the header to request the interface together Her ...

Posted by mwl707 on Tue, 05 Nov 2019 08:02:40 -0800

Using swoole+websocket and redis to realize web one-to-one chat

Redis implements that each service connected to websocket is bound to a unique user. Save to redis through user account = websocket fd. mysql implements the offline message pool. If a user is not online, messages sent to him by other users are temporarily stored in mysql. When the user is online, it is taken out from the offline message pool an ...

Posted by Eal on Tue, 05 Nov 2019 06:13:55 -0800

. net core webapi jwt more refreshing authentication

Original text: . net core webapi jwt more refreshing authentication My way is not mainstream, but I can control it more flexibly. My favorite friend may as well take a moment to learn jwt authentication is divided into two parts. The first part is encryption and decryption. The second part is flexible application to middleware. My processing m ...

Posted by syn1234 on Mon, 04 Nov 2019 13:41:55 -0800

Try Flutter: write a boring App (with Flutter experience)

Today's X Github: https://github.com/shuiRong/T... (today's X) This is a boring App written by FlutterRecommend a different one every day: picture, poem, famous saying, music, music review, advanced mathematics, two kinds of color matching, chemical equation, Github Repo, Zhihu problem. (P.S. except that the picture is from Bing homepage, only ...

Posted by m00p4h on Mon, 04 Nov 2019 12:18:11 -0800