Vue Practical Operations - Project Optimization (Concluding Chapter)

We have built takeaway projects with Vue from scratch, and have a better understanding of vue. We have gradually realized the three modules of ordering, evaluation and business. Let's review the previous modules. Module review Order module: Evaluation module: Business module: Module optimization Now we need to further improve our project. Now ...

Posted by ungown_admin on Mon, 07 Oct 2019 16:14:13 -0700

mybatis plus uses redis as a secondary cache

It is recommended that the cache be placed in the service layer. You can customize your own BaseService Impl override annotation parent class method and inherit your own implementation. For convenience, we put the cache in the mapper layer. mybatis-plus integrates redis as a secondary cache, which is slightly different from mybatis integrates r ...

Posted by rockofaith on Mon, 07 Oct 2019 10:42:19 -0700

The use of saltstack's api

The use of api 1. Install salt-api [root@server1 ~]# Yum install-y salt-api # install API 2. Generating certificates and secret keys [root@server1~] # cd/etc/pki/tls/private/# generates certificates and private keys [root@server1 private]# openssl genrsa 2048 > localhost.key [root@server1 private]# c ...

Posted by shonuff on Mon, 07 Oct 2019 08:57:52 -0700

Request Body Advice and Response Body Advice handle input and output globally

Usage scenarios All inputs in the project need to be filtered in front and back spaces Replace some special character input Decrypt some key fields Inject some parameters when requesting a method Return parameter unified processing, if the background returns empty, unified return success information Unified processing of special characters suc ...

Posted by RHolm on Mon, 07 Oct 2019 07:22:37 -0700

Spring Boot integrates smart-doc to generate api documents

Smart-doc is a java restful api document generation tool. smart-doc overthrows the traditional method like swagger, which uses annotation intrusion to generate documents. Smrt-doc generates interface documents based on the analysis of interface source code. It is completely zero-annotation intrusion. You only need to write annotations according ...

Posted by aidema on Mon, 07 Oct 2019 05:37:24 -0700

Some personal records of Token

Token: In computer identity authentication, it means token (temporary) and in lexical analysis it means token. Generally used as an invitation and login system. Token is a token used to authenticate first. Secondly, its existence is time-limited, expired, and it can store some information in token. ...

Posted by veluit06 on Mon, 07 Oct 2019 04:21:25 -0700

JavaScript Implements Exporting CSV Files

The data structure obtained through the interface is as shown above, and now the data is exported through JavaScript: <script type="text/javascript" src="json2csv.js"></script> <script type="text/javascript"> var title = Object.keys(jsonData.list[0]); var ...

Posted by sbrinley on Mon, 07 Oct 2019 00:41:33 -0700

"Small Program JAVA Actual Warfare" Small Program Registration and Backend Debugging (35)

The registration interface of spring boot in the back end of the applet has been completed. The next step is to modify the front-end request of the applet. I mentioned the api of wx.request before. Source: wx-spring boot and No.15 in https://github.com/limingios/wxProgram.git Registration and back-end debugging Define the path of the back-end ...

Posted by subwiz on Sun, 06 Oct 2019 22:15:42 -0700

axios Source Series - Internal Adapter

Default adapter axios/lib/adapters/http.js The core is the http(s).request method of nodejs to make requests var utils = require('./../utils'); var settle = require('./../core/settle'); var buildFullPath = require('../core/buildFullPath'); var buildURL = require('./../helpers/buildURL'); var http = require('http'); var https = require('https'); ...

Posted by barteelamar on Sun, 06 Oct 2019 19:41:46 -0700

Spark implements a slightly more complex business scenario by customizing InputFormat to read HDFS files

Links to the original text: https://www.oipapio.com/cn/article-2689341 Business scenario Spark knows how to read files according to InputFormat. By default, it reads files according to one line. In some specific cases, Spark's default Inpu ...

Posted by garyb_44 on Sun, 06 Oct 2019 17:05:10 -0700