Vi. springboot integration swagger

brief introduction swagger provides the most powerful and easy-to-use tools to take full advantage of the OpenAPI specification. Official website: https://swagger.io/ Preparation pom.xml jar introduction: < swagger. Version > 2.9.2 < / swagger. Version > <dependency> <groupId>io.springfox</groupId ...

Posted on Sun, 01 Dec 2019 06:57:04 -0500 by dayang

Spring-Boot2-X integrated Redis for caching

The real battle makes the real knowledge, and the composition records it. Main pain points solved Spring boot 2.0.2 as background Common serialization and deserialization settings Use Jackson 2jsonredisserializer for serialization and deserialization. Solve the problem of garbled code in cache Detailed instructions Complete use ex ...

Posted on Sun, 01 Dec 2019 06:49:09 -0500 by jacksonmj

Add, delete, modify and query json files based on Koa(nodejs framework)

If you want to use nodejs (koa) to build a complete front-end and back-end, complete the data addition, deletion, modification and query, and do not want to use the database, then use the json file.This paper introduces the addition, deletion, modification and query of json file based on koa. Code preparation const Koa = require('koa') const bo ...

Posted on Sun, 01 Dec 2019 03:51:08 -0500 by persia

Basic usage of CURL function extension in PHP

PHP's curl function provides many functions, which need to be combined according to specific steps. Let's first understand the basic steps for PHP to establish a curl request. $ch = CURL init(); / / create a new CURL resource to assign to variable $Ch curl_setopt($ch, CURLOPT_URL, $url); / / set URL $response = curl_exec($ch); / / execute, ge ...

Posted on Sat, 30 Nov 2019 18:00:57 -0500 by hours12

python crawler project - financial data of snowball (pay attention to and keep updating)

(I) python financial data crawler project Crawling target: Snowball net (starting url: https://xueqiu.com/hq#exchange = CN & firstname = 1 & secondname = 1_ & page = 1) Crawling content: snowball.com Shenzhen and Shanghai Stock Market Use tools: requests library to send requests and get responses.    Dynamic loading data in json f ...

Posted on Sat, 30 Nov 2019 17:57:25 -0500 by loveranger

Modify docker default Bridge

This article introduces two methods to modify the default bridge of docker, both of which are realized by modifying the daemon.json file.First kind 1. Delete the old network $ sudo service docker stop$ sudo ip link set dev docker0 down$ sudo brctl delbr docker0 2. Modify the file / etc/docker/daemon.json vim /etc/docker/daemon.json{"bip": " ...

Posted on Sat, 30 Nov 2019 16:34:09 -0500 by kol090

golang creates restful services

2_16x9_filtered.jpg.pagespeed.ce.zVPGFVmXTR.jpg For restful, seeSpeaking Restful Create project Create the project, then create the main file, referencing the required package. package main import ( "encoding/json" "log" "net/http" "math/rand" "strconv" "github.com/gorilla/mux" ) func main(){ ...

Posted on Sat, 30 Nov 2019 02:40:42 -0500 by balacay

node logstore winston

winston node logstore, address npm install winston. 1. Basic use const winston = require('winston') // Configure the logging system const logger = winston.createLogger({ //When the output log level is lower than the set value, output "info,erro,verbose", etc level: 'info', //Log level definition, default to ...

Posted on Fri, 29 Nov 2019 15:41:31 -0500 by shdt

Five steps to complete the package and one click deployment (test) service of Vue cli project

Initialize the vue project, and the test service is ready (provided that it is ready) Note: one click deployment of vue2.0~3.0 can be used 1. Create a new deploy ment folder in the root directory: The. env.dev class contains the following VUE_APP_SERVER_ID=0 The. env.prod class contains the following VUE_APP_SERVER_ID=1 The class conte ...

Posted on Fri, 29 Nov 2019 14:51:49 -0500 by Adamthenewbie

Custom Json parsing tool

This blog is the original article of the blogger. Please indicate the source of the reprint. Rights protection must be studied: https://www.cnblogs.com/tangZH/p/10689536.html   Fastjson is a good json parsing tool. Unfortunately, the apk is required to be as small as possible in the project, so I don't intend to introduce fastjson, so I have ...

Posted on Fri, 29 Nov 2019 12:00:03 -0500 by fastfingertips